r-bigmemory.sri: use metadata checks

This commit is contained in:
Pekka Ristola 2023-12-24 17:18:15 +02:00
parent 00fd1f84d4
commit 5441757c32
No known key found for this signature in database
GPG key ID: 2C20BE716E05213E
8 changed files with 26 additions and 31 deletions

View file

@ -9,7 +9,7 @@ pkgrel=8
pkgdesc="Utilities for 'big.matrix' Objects from Package 'bigmemory'" pkgdesc="Utilities for 'big.matrix' Objects from Package 'bigmemory'"
arch=(x86_64) arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname" url="https://cran.r-project.org/package=$_pkgname"
license=(Apache LGPL3) license=('LGPL-3.0-only OR Apache-2.0')
depends=( depends=(
r-biglm r-biglm
r-bigmemory r-bigmemory

View file

@ -7,10 +7,7 @@ sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions'))
from lilac_r_utils import r_pre_build from lilac_r_utils import r_pre_build
def pre_build(): def pre_build():
r_pre_build( r_pre_build(_G)
_G,
expect_license = "LGPL-3 | Apache License 2.0",
)
def post_build(): def post_build():
git_pkgbuild_commit() git_pkgbuild_commit()

View file

@ -3,27 +3,25 @@
_pkgname=bigmemory.sri _pkgname=bigmemory.sri
_pkgver=0.1.6 _pkgver=0.1.6
pkgname=r-${_pkgname,,} pkgname=r-${_pkgname,,}
pkgver=0.1.6 pkgver=${_pkgver//-/.}
pkgrel=4 pkgrel=4
pkgdesc='A shared resource interface for Bigmemory Project packages' pkgdesc="A Shared Resource Interface for Bigmemory Project Packages"
arch=('any') arch=(any)
url="https://cran.r-project.org/package=${_pkgname}" url="https://cran.r-project.org/package=$_pkgname"
license=('LGPL') license=('LGPL-3.0-only OR Apache-2.0')
depends=( depends=(
r r
) )
optdepends=(
r-bigmemory
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('3bfa6ac966ce0ea93283f5856a853d0ee5ff85aedd7a7d1ca8a93d0aa642860c') md5sums=('c9e558480d17b5d5abaa3fc8fa02fde6')
b2sums=('50493caa6334f9719f3eb6142394fd43b795119790f221123ef1e26b27d30cf09caa5bada455f3fa927e86ee4a526d8c3c5ca9a31cd310b77581b83d29a411b8')
build() { build() {
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}" mkdir build
R CMD INSTALL -l build "$_pkgname"
} }
package() { package() {
install -dm0755 "${pkgdir}/usr/lib/R/library" install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library" cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
} }
# vim:set ts=2 sw=2 et:

View file

@ -1,12 +1,13 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from lilaclib import * 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(): def pre_build():
for line in edit_file('PKGBUILD'): r_pre_build(_G)
if line.startswith('_pkgver='):
line = f'_pkgver={_G.newver}'
print(line)
update_pkgver_and_pkgrel(_G.newver.replace(':', '.').replace('-', '.'))
def post_build(): def post_build():
git_pkgbuild_commit() git_pkgbuild_commit()

View file

@ -3,7 +3,8 @@ maintainers:
- github: starsareintherose - github: starsareintherose
email: kuoi@bioarchlinux.org email: kuoi@bioarchlinux.org
update_on: update_on:
- regex: bigmemory.sri_([\d._-]+).tar.gz - source: rpkgs
source: regex pkgname: bigmemory.sri
url: https://cran.r-project.org/package=bigmemory.sri repo: cran
md5: true
- alias: r - alias: r

View file

@ -9,7 +9,7 @@ pkgrel=7
pkgdesc="Manage Massive Matrices with Shared Memory and Memory-Mapped Files" pkgdesc="Manage Massive Matrices with Shared Memory and Memory-Mapped Files"
arch=(x86_64) arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname" url="https://cran.r-project.org/package=$_pkgname"
license=(Apache LGPL3) license=('LGPL-3.0-only OR Apache-2.0')
depends=( depends=(
r-bigmemory.sri r-bigmemory.sri
r-rcpp r-rcpp

View file

@ -7,10 +7,7 @@ sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions'))
from lilac_r_utils import r_pre_build from lilac_r_utils import r_pre_build
def pre_build(): def pre_build():
r_pre_build( r_pre_build(_G)
_G,
expect_license = "LGPL-3 | Apache License 2.0",
)
def post_build(): def post_build():
git_pkgbuild_commit() git_pkgbuild_commit()

View file

@ -211,6 +211,7 @@ license_map = {
"LGPL (>= 2.1)": "LGPL", "LGPL (>= 2.1)": "LGPL",
"LGPL-2": "LGPL2.1", "LGPL-2": "LGPL2.1",
"LGPL-3": "LGPL3", "LGPL-3": "LGPL3",
"LGPL-3 | Apache License 2.0": "LGPL-3.0-only OR Apache-2.0",
"Lucent Public License": "custom:LPL", "Lucent Public License": "custom:LPL",
"MIT + file LICENSE": "MIT", "MIT + file LICENSE": "MIT",
"Mozilla Public License 2.0": "MPL2", "Mozilla Public License 2.0": "MPL2",