diff options
author | Pekka Ristola | 2023-12-11 18:02:57 +0200 |
---|---|---|
committer | Pekka Ristola | 2023-12-11 18:02:57 +0200 |
commit | 4068281b9c88837dc31e5e45926f55c0b48bd28b (patch) | |
tree | 740c16a41481eca4f3ea2c07ae924e81d9600cb3 /PKGBUILD | |
download | aur-4068281b9c88837dc31e5e45926f55c0b48bd28b.tar.gz |
Version 1.6.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cc36cb9e8ca5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com> + +_pkgname=PanomiR +_pkgver=1.6.0 +pkgname=r-${_pkgname,,} +pkgver=${_pkgver//-/.} +pkgrel=1 +pkgdesc="Detection of miRNAs that regulate interacting groups of pathways" +arch=(any) +url="https://bioconductor.org/packages/${_pkgname}" +license=(MIT) +depends=( + r-clusterprofiler + r-dplyr + r-forcats + r-gseabase + r-igraph + r-limma + r-metap + r-org.hs.eg.db + r-preprocesscore + r-rcolorbrewer + r-rlang + r-tibble + r-withr +) +checkdepends=( + r-testthat +) +optdepends=( + r-biocstyle + r-knitr + r-rmarkdown + r-testthat +) +source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +md5sums=('a8f96cdc267551107e69e8cb260a05c0') +sha256sums=('683caee92d63498c49b5edcc84ec95490cd5f42a6b9d846b1113bb174cc57575') + +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" + + install -d "$pkgdir/usr/share/licenses/$pkgname" + ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname" +} |