blob: ffc5bb78a8a5dad845ac02fcb3f6966e586fd7b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=fgsea
_pkgver=1.28.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Fast Gene Set Enrichment Analysis"
arch=(x86_64)
url="https://bioconductor.org/packages/${_pkgname}"
license=(MIT)
depends=(
r-biocparallel
r-cowplot
r-data.table
r-fastmatch
r-ggplot2
r-rcpp
r-scales
)
makedepends=(
r-bh
)
checkdepends=(
r-geoquery
r-limma
r-reactome.db
r-testthat
)
optdepends=(
r-aggregation
r-annotationdbi
r-geoquery
r-knitr
r-limma
r-msigdbr
r-org.mm.eg.db
r-reactome.db
r-rmarkdown
r-seurat
r-testthat
)
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('53b8ab8a13390a0920bc13eeba3aa1b8')
sha256sums=('14938064e7a492b9a0edb8ac068b107a86e613df232f58820984df672369d36b')
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/LICENCE" "$pkgdir/usr/share/licenses/$pkgname"
}
|