mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-optparse: enable tests, push to AUR
This commit is contained in:
parent
61b89cb3ff
commit
2baa58ff7d
3 changed files with 19 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -11,3 +11,4 @@ def pre_build():
|
|||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
update_aur_repo()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue