mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-bigmemory.sri: use metadata checks
This commit is contained in:
parent
00fd1f84d4
commit
5441757c32
8 changed files with 26 additions and 31 deletions
|
@ -9,7 +9,7 @@ pkgrel=8
|
|||
pkgdesc="Utilities for 'big.matrix' Objects from Package 'bigmemory'"
|
||||
arch=(x86_64)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=(Apache LGPL3)
|
||||
license=('LGPL-3.0-only OR Apache-2.0')
|
||||
depends=(
|
||||
r-biglm
|
||||
r-bigmemory
|
||||
|
|
|
@ -7,10 +7,7 @@ sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions'))
|
|||
from lilac_r_utils import r_pre_build
|
||||
|
||||
def pre_build():
|
||||
r_pre_build(
|
||||
_G,
|
||||
expect_license = "LGPL-3 | Apache License 2.0",
|
||||
)
|
||||
r_pre_build(_G)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
|
|
|
@ -3,27 +3,25 @@
|
|||
_pkgname=bigmemory.sri
|
||||
_pkgver=0.1.6
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=0.1.6
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=4
|
||||
pkgdesc='A shared resource interface for Bigmemory Project packages'
|
||||
arch=('any')
|
||||
url="https://cran.r-project.org/package=${_pkgname}"
|
||||
license=('LGPL')
|
||||
pkgdesc="A Shared Resource Interface for Bigmemory Project Packages"
|
||||
arch=(any)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('LGPL-3.0-only OR Apache-2.0')
|
||||
depends=(
|
||||
r
|
||||
)
|
||||
optdepends=(
|
||||
r-bigmemory
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('3bfa6ac966ce0ea93283f5856a853d0ee5ff85aedd7a7d1ca8a93d0aa642860c')
|
||||
md5sums=('c9e558480d17b5d5abaa3fc8fa02fde6')
|
||||
b2sums=('50493caa6334f9719f3eb6142394fd43b795119790f221123ef1e26b27d30cf09caa5bada455f3fa927e86ee4a526d8c3c5ca9a31cd310b77581b83d29a411b8')
|
||||
|
||||
build() {
|
||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||
mkdir build
|
||||
R CMD INSTALL -l build "$_pkgname"
|
||||
}
|
||||
|
||||
package() {
|
||||
install -dm0755 "${pkgdir}/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
|
||||
install -d "$pkgdir/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
||||
}
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
#!/usr/bin/env python3
|
||||
from lilaclib import *
|
||||
|
||||
import os
|
||||
import sys
|
||||
sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions'))
|
||||
from lilac_r_utils import r_pre_build
|
||||
|
||||
def pre_build():
|
||||
for line in edit_file('PKGBUILD'):
|
||||
if line.startswith('_pkgver='):
|
||||
line = f'_pkgver={_G.newver}'
|
||||
print(line)
|
||||
update_pkgver_and_pkgrel(_G.newver.replace(':', '.').replace('-', '.'))
|
||||
r_pre_build(_G)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
|
|
|
@ -3,7 +3,8 @@ maintainers:
|
|||
- github: starsareintherose
|
||||
email: kuoi@bioarchlinux.org
|
||||
update_on:
|
||||
- regex: bigmemory.sri_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://cran.r-project.org/package=bigmemory.sri
|
||||
- source: rpkgs
|
||||
pkgname: bigmemory.sri
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
||||
|
|
|
@ -9,7 +9,7 @@ pkgrel=7
|
|||
pkgdesc="Manage Massive Matrices with Shared Memory and Memory-Mapped Files"
|
||||
arch=(x86_64)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=(Apache LGPL3)
|
||||
license=('LGPL-3.0-only OR Apache-2.0')
|
||||
depends=(
|
||||
r-bigmemory.sri
|
||||
r-rcpp
|
||||
|
|
|
@ -7,10 +7,7 @@ sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions'))
|
|||
from lilac_r_utils import r_pre_build
|
||||
|
||||
def pre_build():
|
||||
r_pre_build(
|
||||
_G,
|
||||
expect_license = "LGPL-3 | Apache License 2.0",
|
||||
)
|
||||
r_pre_build(_G)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
|
|
|
@ -211,6 +211,7 @@ license_map = {
|
|||
"LGPL (>= 2.1)": "LGPL",
|
||||
"LGPL-2": "LGPL2.1",
|
||||
"LGPL-3": "LGPL3",
|
||||
"LGPL-3 | Apache License 2.0": "LGPL-3.0-only OR Apache-2.0",
|
||||
"Lucent Public License": "custom:LPL",
|
||||
"MIT + file LICENSE": "MIT",
|
||||
"Mozilla Public License 2.0": "MPL2",
|
||||
|
|
Loading…
Add table
Reference in a new issue