blob: 9ecb7635830435beaccaf236467f1f32dc45eea5 (
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
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
_pkgname=SparseArray
_pkgver=1.8.1
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="High-performance sparse data representation and manipulation in R"
arch=(x86_64)
url="https://bioconductor.org/packages/$_pkgname"
license=('Artistic-2.0')
depends=(
r-biocgenerics
r-iranges
r-matrixgenerics
r-matrixstats
r-s4arrays
r-s4vectors
r-xvector
)
checkdepends=(
r-testthat
)
optdepends=(
r-biocstyle
r-experimenthub
r-hdf5array
r-knitr
r-rmarkdown
r-testthat
)
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('65780d83c0b2e18e59c87b9944f598fa')
b2sums=('500d8b874a43a3fe0f2f06b79636d09a47bb7bdb02981aa30fd4367aa4f1ff27bdc84a8a818e409edb92ad461b2a5a2ab337d4b845c591895f57907ed428b581')
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"
}
|