blob: e061720dbec47c067d35fa0ef83546e4ad6ad107 (
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=gDRtestData
_pkgver=1.2.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="R data package with testing dose reponse data"
arch=(any)
url="https://bioconductor.org/packages/$_pkgname"
license=('Artistic-2.0')
depends=(
r-checkmate
r-data.table
)
checkdepends=(
r-testthat
)
optdepends=(
r-biocstyle
r-gdrstyle
r-knitr
r-qs
r-reshape2
r-rmarkdown
r-summarizedexperiment
r-testthat
r-yaml
)
source=("https://bioconductor.org/packages/release/data/experiment/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('bcfb8aac73ffc43e31fea9fb8b096960')
b2sums=('ce04cdf8e149f6de493f0f17dea1af3c600218078660258e3c2b370a76aa943d449255c1731b21f517068053c564fe499e2e978bcdd8246c8a6bba5b9f3c8942')
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"
}
|