r-optparse: enable tests, push to AUR

This commit is contained in:
Pekka Ristola 2024-05-07 16:08:46 +03:00
parent 61b89cb3ff
commit 2baa58ff7d
No known key found for this signature in database
GPG key ID: 2C20BE716E05213E
3 changed files with 19 additions and 3 deletions

View file

@ -1,4 +1,5 @@
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=optparse
_pkgver=1.7.5
@ -12,6 +13,10 @@ license=('GPL-2.0-or-later')
depends=(
r-getopt
)
checkdepends=(
r-stringr
r-testthat
)
optdepends=(
r-knitr
r-stringr
@ -26,6 +31,11 @@ build() {
R CMD INSTALL -l build "$_pkgname"
}
check() {
cd "$_pkgname/tests"
R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla run-all.R
}
package() {
install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"

View file

@ -11,3 +11,4 @@ def pre_build():
def post_build():
git_pkgbuild_commit()
update_aur_repo()

View file

@ -1,12 +1,17 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
- github: pekkarr
email: pekkarr@protonmail.com
repo_depends:
- r-getopt
repo_makedepends:
- r-stringr
- r-testthat
update_on:
- source: rpkgs
pkgname: optparse
repo: cran
md5: true
- alias: r
- source: manual
manual: 1