blob: 4ffac48fd6f3e646b272f15dbf1ee81a696f2767 (
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
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
_pkgname=SUITOR
_pkgver=1.8.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Selecting the number of mutational signatures through cross-validation"
arch=(x86_64)
url="https://bioconductor.org/packages/$_pkgname"
license=('GPL-2.0-only')
depends=(
r-biocparallel
r-ggplot2
)
checkdepends=(
r-biocgenerics
r-runit
)
optdepends=(
r-biocgenerics
r-biocmanager
r-biocstyle
r-devtools
r-knitr
r-mutationalpatterns
r-rmarkdown
r-runit
)
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('1780e3240f4b4d5644da6feb41eb5c45')
b2sums=('896d93d0b00d5d1662b07c2baf86287aac6c28df183c6665f2a17190d27f02a8f4f7da8ebb3e8c2469b4a293efd986df96b9a05ab6a6f316c5728863231cb81c')
build() {
mkdir build
R CMD INSTALL -l build "$_pkgname"
}
check() {
cd "$_pkgname/tests"
R_LIBS="$srcdir/build" Rscript --vanilla runTests.R
}
package() {
install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
}
|