blob: 912fd80945557acc87906f7b4dce74ab6c02797d (
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
67
68
69
70
71
72
73
74
75
76
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=ChemmineR
_pkgver=3.58.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Cheminformatics Toolkit for R"
arch=(x86_64)
url="https://bioconductor.org/packages/$_pkgname"
license=('Artistic-2.0')
depends=(
r-base64enc
r-biocgenerics
r-dbi
r-digest
r-dt
r-ggplot2
r-gridextra
r-jsonlite
r-png
r-rcpp
r-rcurl
r-rjson
r-rsvg
r-stringi
)
makedepends=(
r-bh
swig
)
checkdepends=(
r-rsqlite
r-runit
r-snow
)
optdepends=(
r-bibtex
r-biocmanager
r-biocstyle
r-chemminedrugs
r-fmcsr
r-gplots
r-knitcitations
r-knitr
r-knitrbootstrap
r-rmarkdown
r-rpostgresql
r-rsqlite
r-scatterplot3d
r-snow
)
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('292f291e6708988f5f104a88e50d5260')
b2sums=('a6cffb6b6cc1980fa2aa3ff762b024b70ee18184c32c4511099b70fd490a6b04532ce567e0330cd7637a443d359047d403e8302365b83740dfdf57d8c8ec1c0f')
build() {
# generate R bindings
cd "$_pkgname"
./runSwig.sh
cd ..
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"
}
|