diff options
author | Pekka Ristola | 2023-12-11 19:34:39 +0200 |
---|---|---|
committer | Pekka Ristola | 2023-12-11 19:34:39 +0200 |
commit | d2de6fbb8f6b02498dd30908658618e4cd3324b9 (patch) | |
tree | 9fe1b3fb3b0ed97076a78977d685343bd979fac8 | |
download | aur-d2de6fbb8f6b02498dd30908658618e4cd3324b9.tar.gz |
Version 1.6.0
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4de328dc30cd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = r-raresim + pkgdesc = Simulation of Rare Variant Genetic Data + pkgver = 1.6.0 + pkgrel = 1 + url = https://bioconductor.org/packages/RAREsim + arch = any + license = GPL3 + checkdepends = r-testthat + depends = r-nloptr + optdepends = r-biocstyle + optdepends = r-ggplot2 + optdepends = r-knitr + optdepends = r-markdown + optdepends = r-rmarkdown + optdepends = r-testthat + source = https://bioconductor.org/packages/release/bioc/src/contrib/RAREsim_1.6.0.tar.gz + md5sums = 6ec5b86f348e2d4ffb365da80651041e + sha256sums = 8fb2a823bf1b18ea70eb886ed8726c47896ac240156499e90943fd36f1de213f + +pkgname = r-raresim diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cd500cfef853 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com> + +_pkgname=RAREsim +_pkgver=1.6.0 +pkgname=r-${_pkgname,,} +pkgver=${_pkgver//-/.} +pkgrel=1 +pkgdesc="Simulation of Rare Variant Genetic Data" +arch=(any) +url="https://bioconductor.org/packages/${_pkgname}" +license=(GPL3) +depends=( + r-nloptr +) +checkdepends=( + r-testthat +) +optdepends=( + r-biocstyle + r-ggplot2 + r-knitr + r-markdown + r-rmarkdown + r-testthat +) +source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +md5sums=('6ec5b86f348e2d4ffb365da80651041e') +sha256sums=('8fb2a823bf1b18ea70eb886ed8726c47896ac240156499e90943fd36f1de213f') + +build() { + mkdir -p build + R CMD INSTALL "$_pkgname" -l build +} + +check() { + cd "$_pkgname/tests" + R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R +} + +package() { + install -d "$pkgdir/usr/lib/R/library" + cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library" +} |