blob: 244b62001f8e94a014aa95233dd455fe04fccf16 (
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
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
_pkgname=UCSC.utils
_pkgver=1.2.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Low-level utilities to retrieve data from the UCSC Genome Browser"
arch=(any)
url="https://bioconductor.org/packages/$_pkgname"
license=('Artistic-2.0')
depends=(
r-httr
r-jsonlite
r-s4vectors
)
checkdepends=(
r-dbi
r-rmariadb
r-testthat
)
optdepends=(
r-biocstyle
r-dbi
r-genomeinfodb
r-knitr
r-rmariadb
r-rmarkdown
r-testthat
)
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('ab12a0427231a9578aba56dc73049730')
b2sums=('64fba06e9d6962c3f8545580ce83c2119f4503567f1a0780e73b04179b45e72f60d9bfe3c49f48bdd7a3e909d76cbb0a81d4020fd30a6c5d2f20021ede493f0b')
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"
}
|