Packages/BioArchLinux/r-apl/PKGBUILD
2024-01-17 21:22:11 +02:00

58 lines
1.2 KiB
Bash

# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
_pkgname=APL
_pkgver=1.6.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=2
pkgdesc="Association Plots"
arch=(any)
url="https://bioconductor.org/packages/$_pkgname"
license=('GPL-3.0-or-later')
depends=(
r-ggplot2
r-ggrepel
r-magrittr
r-org.hs.eg.db
r-org.mm.eg.db
r-plotly
r-reticulate
r-rlang
r-seurat
r-singlecellexperiment
r-summarizedexperiment
r-topgo
r-viridislite
)
checkdepends=(
python-pytorch
r-testthat
)
optdepends=(
"python-pytorch: faster singular value decomposition"
r-biocstyle
r-knitr
r-rmarkdown
r-scater
r-scran
r-scrnaseq
r-testthat
)
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('725b38bc042e6b6fd349aac0ff3d471c')
b2sums=('2d0235a4f1f8eb8d89adc4a8af966fb2296ecf4886e98ecda51ec360db76d43dba27a60cfbdcfff2799f649923154a632a658a2e8b12afc6cff2372c49577095')
build() {
mkdir build
R CMD INSTALL -l build "$_pkgname"
}
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"
}