r-*: use metadata checks for several packages

This commit is contained in:
Pekka Ristola 2023-12-28 13:45:56 +02:00
parent 42cfd64eb6
commit 76496e944f
No known key found for this signature in database
GPG key ID: 2C20BE716E05213E
15 changed files with 108 additions and 92 deletions

View file

@ -3,24 +3,25 @@
_pkgname=combinat
_pkgver=0.0-8
pkgname=r-${_pkgname,,}
pkgver=0.0.8
pkgver=${_pkgver//-/.}
pkgrel=8
pkgdesc='combinatorics utilities'
arch=('any')
url="https://cran.r-project.org/package=${_pkgname}"
license=('GPL')
pkgdesc="combinatorics utilities"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=(GPL2)
depends=(
r
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('1513cf6b6ed74865bfdd9f8ca58feae12b62f38965d1a32c6130bef810ca30c1')
md5sums=('8fb5132227894e7e5e01d8183395a7ac')
b2sums=('7fcfb38c482be4dec2a10ef05a508fb13ae5f5e17066d65c3b3318f5268a6a718c9bd406f5dcc2dbf4d2d4b7af7ea53a8072422b79b9355d795f39c3ba9a0e02')
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:

View file

@ -1,12 +1,16 @@
#!/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,
expect_needscompilation = "",
)
def post_build():
git_pkgbuild_commit()

View file

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

View file

@ -3,24 +3,25 @@
_pkgname=idr
_pkgver=1.3
pkgname=r-${_pkgname,,}
pkgver=1.3
pkgver=${_pkgver//-/.}
pkgrel=5
pkgdesc='Irreproducible discovery rate'
arch=('any')
url="https://cran.r-project.org/package=${_pkgname}"
license=('GPL')
pkgdesc="Irreproducible Discovery Rate"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=(GPL)
depends=(
r
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('6b3910dc48495439cd01828f8999823864a6712f73560ee3e6c903065c67d1e4')
md5sums=('d3fcfef19b12cd9c0867fd607ab7ca5b')
b2sums=('74cf7fa749e436e1782e77af54101f3bf5508b6fecb0d6a8a343f0ba2b8a600a464c459f750a8a2e9c24422351cbeac2da12fc31ed2571e74d697da38f5cbf3d')
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:

View file

@ -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()

View file

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

View file

@ -3,24 +3,25 @@
_pkgname=Illumina450ProbeVariants.db
_pkgver=1.38.0
pkgname=r-${_pkgname,,}
pkgver=1.38.0
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc='Annotation Package combining variant data from 1000 Genomes Project for Illumina HumanMethylation450 Bead Chip probes'
arch=('any')
url="https://bioconductor.org/packages/${_pkgname}"
license=('GPL')
pkgdesc="Annotation Package combining variant data from 1000 Genomes Project for Illumina HumanMethylation450 Bead Chip probes"
arch=(any)
url="https://bioconductor.org/packages/$_pkgname"
license=(GPL3)
depends=(
r
)
source=("https://bioconductor.org/packages/release/data/experiment/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('4b943ad15236b6d7190d3572aec4b26386756f423c441e8b2f5d88e66b6318c0')
md5sums=('ca34eec73a57e5f226b70a20ef706ee3')
b2sums=('83110d4127bc4963140a54c046a3233945422f7ca1137addb41ef531d96130d3f6279bba852869d1638bfc6783ab16b4e2846c9b28ae3f66dd8474a3fac07039')
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:

View file

@ -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()

View file

@ -3,7 +3,8 @@ maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
update_on:
- regex: Illumina450ProbeVariants.db_([\d._-]+).tar.gz
source: regex
url: https://bioconductor.org/packages/Illumina450ProbeVariants.db
- source: rpkgs
pkgname: Illumina450ProbeVariants.db
repo: bioc-data-experiment
md5: true
- alias: r

View file

@ -3,31 +3,30 @@
_pkgname=pls
_pkgver=2.8-3
pkgname=r-${_pkgname,,}
pkgver=2.8.3
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc='Partial Least Squares and Principal Component Regression'
arch=('any')
url="https://cran.r-project.org/package=${_pkgname}"
license=('GPL')
pkgdesc="Partial Least Squares and Principal Component Regression"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=(GPL2)
depends=(
r
)
optdepends=(
r-mass
r-parallel
r-rmpi
r-runit
r-testthat
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('e6eb728dd38cd4867698df06e02601ed767e69098b1daadde5beef634ae66be3')
md5sums=('3206a18410583f0672f02cac9dbedce5')
b2sums=('0f403612c86ce91b40e810f4311c69e0d965dc96b1ec6b9a56a7ae2b7603f0051f0f72079ad318cbe7e933122942fc422f6da3746db823d8e2dd9949222e8333')
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:

View file

@ -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()

View file

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

View file

@ -3,24 +3,25 @@
_pkgname=RPMM
_pkgver=1.25
pkgname=r-${_pkgname,,}
pkgver=1.25
pkgver=${_pkgver//-/.}
pkgrel=8
pkgdesc='Recursively Partitioned Mixture Model'
arch=('any')
url="https://cran.r-project.org/package=${_pkgname}"
license=('GPL')
pkgdesc="Recursively Partitioned Mixture Model"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=(GPL)
depends=(
r
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('f04a524b13918062616beda50c4e759ce2719ce14150a0e677d07132086c88c8')
md5sums=('3b449d676fd71ec4493db50e7f849dc9')
b2sums=('0232bec224a2c3f63ad34b2f980fc356e4bd77dc75fc7ca4b1655955dcb126eaf492c43486ea5276bbe5451427c6d7d4555d5b5c7045dc50f6a63c566acf9538')
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:

View file

@ -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()

View file

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