r-*: use metadata checks for several packages

This commit is contained in:
Pekka Ristola 2023-12-25 13:17:39 +02:00
parent acb221345e
commit 98740578fb
No known key found for this signature in database
GPG key ID: 2C20BE716E05213E
21 changed files with 176 additions and 137 deletions

View file

@ -3,12 +3,12 @@
_pkgname=BiocBaseUtils
_pkgver=1.4.0
pkgname=r-${_pkgname,,}
pkgver=1.4.0
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc='General utility functions for developing Bioconductor packages'
arch=('any')
url="https://bioconductor.org/packages/${_pkgname}"
license=('Artistic2.0')
pkgdesc="General utility functions for developing Bioconductor packages"
arch=(any)
url="https://bioconductor.org/packages/$_pkgname"
license=(Artistic2.0)
depends=(
r
)
@ -19,14 +19,15 @@ optdepends=(
r-tinytest
)
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('e588788262936ed9cc83ab198ec4a0e3b95f92af6cd443a66d1b6c9827fa32a1')
md5sums=('23ed1406ff70165a763ca2040c46353e')
b2sums=('c48bc9b7fc906b3f7ed5850623abf66ea7ea18858ff30bc0f35c43f027856d6722f7d6c249b249a7b6e07f29b8bd9166c31dd4a5a67f62e18a5fd9c7189d04b3')
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,9 +1,14 @@
#!/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()
update_aur_repo()

View file

@ -1,11 +1,10 @@
build_prefix: extra-x86_64
maintainers:
- github: sukanka
email: su975853527@gmail.com
post_build_script: |
git_pkgbuild_commit()
update_aur_repo()
- github: sukanka
email: su975853527@gmail.com
update_on:
- regex: BiocBaseUtils_([\d._-]+).tar.gz
source: regex
url: https://bioconductor.org/packages/BiocBaseUtils
- source: rpkgs
pkgname: BiocBaseUtils
repo: bioc
md5: true
- alias: r

View file

@ -3,12 +3,12 @@
_pkgname=filelock
_pkgver=1.0.3
pkgname=r-${_pkgname,,}
pkgver=1.0.3
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc='Portable File Locking'
arch=('x86_64')
url="https://cran.r-project.org/package=${_pkgname}"
license=('MIT')
pkgdesc="Portable File Locking"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=(MIT)
depends=(
r
)
@ -18,15 +18,18 @@ optdepends=(
r-testthat
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('2dcd0ec453f5ec4d96f69b0c472569d57d3c5f9956a82a48492ee02f12071137')
md5sums=('db8ce0e4e54049a51875108aa996bbdb')
b2sums=('c36a82cc7c4f0720e84b400b3c800c0719ed1a526ea41ec9cad06c00371b5058ad5b08478c2da67b649bdee1acfeab2aaf51f1abb01b55ca639863bc8104aee0')
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 -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
install -d "$pkgdir/usr/share/licenses/$pkgname"
ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
}
# 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: filelock_([\d._-]+).tar.gz
source: regex
url: https://cran.r-project.org/package=filelock
- source: rpkgs
pkgname: filelock
repo: cran
md5: true
- alias: r

View file

@ -3,12 +3,12 @@
_pkgname=import
_pkgver=1.3.1
pkgname=r-${_pkgname,,}
pkgver=1.3.1
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc='An Import Mechanism for R'
arch=('any')
url="https://cran.r-project.org/package=${_pkgname}"
license=('MIT')
pkgdesc="An Import Mechanism for R"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=(MIT)
depends=(
r
)
@ -19,15 +19,18 @@ optdepends=(
r-testthat
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('587ae4ee09c3d264d2f25b912cc326136e102e0f238b10c0719dba500eaaf3c0')
md5sums=('0e1640048136d1b5cb24025337698a23')
b2sums=('0145cab3a62ef017e4427960580415c41c08a747f6a95782a07025eec27e30c624e25d193ac3e973e1fffa7c332976ea73c4f0e1a6f57460037708f366086090')
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 -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
install -d "$pkgdir/usr/share/licenses/$pkgname"
ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
}
# 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: import_([\d._-]+).tar.gz
source: regex
url: https://cran.r-project.org/package=import
- source: rpkgs
pkgname: import
repo: cran
md5: true
- alias: r

View file

@ -3,28 +3,30 @@
# Contributor: Ward Segers <w@rdsegers.be>
# Contributor: Alex Branham <branham@utexas.edu>
_pkgname=irlba
_pkgver=2.3.5.1
pkgname=r-${_pkgname,,}
pkgver=2.3.5.1
pkgver=${_pkgver//-/.}
pkgrel=4
pkgdesc='Fast Truncated Singular Value Decomposition and Principal Components Analysis for Large Dense and Sparse Matrices'
arch=('x86_64')
url="https://cran.r-project.org/package=${_pkgname}"
license=('GPL')
pkgdesc="Fast Truncated Singular Value Decomposition and Principal Components Analysis for Large Dense and Sparse Matrices"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=(GPL3)
depends=(
blas
lapack
r
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('2cfe6384fef91c223a9920895ce89496f990d1450d731e44309fdbec2bb5c5cf')
md5sums=('f738200d5272c7258ee59f7074dd4a6a')
b2sums=('5255a275a2aceec0cb931529eaf67d30ee5058cee5a4c09977f56c9f142d2f3d545b86f4fa220cac5b4b69b93de9efac7b2bd9f6330363f716139be5607e46fd')
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,16 @@ maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
update_on:
- regex: irlba_([\d._-]+).tar.gz
source: regex
url: https://cran.r-project.org/package=irlba
- source: rpkgs
pkgname: irlba
repo: cran
md5: true
- alias: r
- source: alpmfiles
pkgname: blas
filename: usr/lib/libblas\.so\.([^.]+)
repo: extra
- source: alpmfiles
pkgname: lapack
filename: usr/lib/liblapack\.so\.([^.]+)
repo: extra

View file

@ -3,12 +3,12 @@
_pkgname=ontologyIndex
_pkgver=2.11
pkgname=r-${_pkgname,,}
pkgver=2.11
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc='Functions for Reading Ontologies into R'
arch=('any')
url="https://cran.r-project.org/package=${_pkgname}"
license=('GPL')
pkgdesc="Reading Ontologies into R"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=(GPL)
depends=(
r
)
@ -17,14 +17,15 @@ optdepends=(
r-rmarkdown
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('27f12d5b6e2cb9d0a68841a7298a2b6b21d3567a178e751f406991b336decd9e')
md5sums=('c252ea80927b096d3a0b8be63263aa11')
b2sums=('ddd7a2b51b0ab2ea66afe7b7db14a3d7b0270f19202848ff2c7b58965840455663520d7959da3fc2ebb99bea2ad2892d30a648fed89c4453a712895a1b62721e')
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: ontologyIndex_([\d._-]+).tar.gz
source: regex
url: https://cran.r-project.org/package=ontologyIndex
- source: rpkgs
pkgname: ontologyIndex
repo: cran
md5: true
- alias: r

View file

@ -4,30 +4,32 @@
_pkgname=prettyunits
_pkgver=1.2.0
pkgname=r-${_pkgname,,}
pkgver=1.2.0
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc='Pretty, Human Readable Formatting of Quantities'
arch=('any')
url="https://cran.r-project.org/package=${_pkgname}"
license=('MIT')
pkgdesc="Pretty, Human Readable Formatting of Quantities"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=(MIT)
depends=(
r
)
optdepends=(
r-codetools
r-covr
r-testthat
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('f059f27e2a5c82e351fe05b87ad712f7afc273c651450453f59d99af5deeacea')
md5sums=('2e2db8105f214b80d3d4254b8aabb255')
b2sums=('1ab33348ad19218962ec8de12ad7e86a570c0567a2a77daa5f4d9a99c7b03ae987e0ec54db598526b0c8775099ce3f9aed273b9a4e2a081dce1cb52f86e5a958')
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 -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
install -d "$pkgdir/usr/share/licenses/$pkgname"
ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
}
# 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: prettyunits_([\d._-]+).tar.gz
source: regex
url: https://cran.r-project.org/package=prettyunits
- source: rpkgs
pkgname: prettyunits
repo: cran
md5: true
- alias: r

View file

@ -3,12 +3,12 @@
_pkgname=rstudioapi
_pkgver=0.15.0
pkgname=r-${_pkgname,,}
pkgver=0.15.0
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc='Safely Access the RStudio API'
arch=('any')
url="https://cran.r-project.org/package=${_pkgname}"
license=('MIT')
pkgdesc="Safely Access the RStudio API"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=(MIT)
depends=(
r
)
@ -20,15 +20,18 @@ optdepends=(
r-testthat
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('935bc81dca37d3d6e77982bfe6e7fbd779e8606e5b7e00d0ba4c80fec0416ccf')
md5sums=('25e0dafe967089165efab98158a0d6da')
b2sums=('06f27d5fe31d24f964a61dc663805274f9d99be4d38c8265d66d3b9ea7e3be88cfe00ca1d478fb35b8bd118522364a075120897dbe7539f61c17ad328bc7b90e')
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 -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
install -d "$pkgdir/usr/share/licenses/$pkgname"
ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
}
# 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: rstudioapi_([\d._-]+).tar.gz
source: regex
url: https://cran.r-project.org/package=rstudioapi
- source: rpkgs
pkgname: rstudioapi
repo: cran
md5: true
- alias: r