blob: d9d0fd32d3a8a36398c8775d10d23cf4fb829f86 (
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
65
66
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=biodb
_pkgver=1.14.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="a library and a development framework for connecting to chemical and biological databases"
arch=(x86_64)
url="https://bioconductor.org/packages/$_pkgname"
license=('AGPL-3.0-only')
depends=(
r-biocfilecache
r-chk
r-git2r
r-jsonlite
r-lgr
r-lifecycle
r-openssl
r-plyr
r-progress
r-r6
r-rappdirs
r-rcpp
r-rcurl
r-rsqlite
r-stringr
r-withr
r-xml
r-yaml
)
makedepends=(
r-testthat
)
checkdepends=(
r-xml2
)
optdepends=(
r-biocstyle
r-covr
r-devtools
r-knitr
r-rmarkdown
r-roxygen2
r-testthat
r-xml2
)
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('a1b7adef44ebc05598d5e45645d6571e')
b2sums=('7deb56b0aac4bdc784301a5c1b08b8dead0848ce91807d54c6854b37a0d27cbea3d3f9a0d71f20174a053d1a6772e860be372edd403526c77a934feb0679ccd1')
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"
}
|