blob: 39442e5a3992f7e6f75fbb47b26d8f7b7f7bbfe4 (
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
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
# Contributor: Robert Greener <me@r0bert.dev>
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Ward Segers <w@rdsegers.be>
# Contributor: Alex Branham <alex.branham@gmail.com>
_pkgname=rstan
_pkgver=2.32.6
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="R Interface to Stan"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-3.0-or-later')
depends=(
onetbb
pandoc
r-ggplot2
r-gridextra
r-inline
r-loo
r-pkgbuild
r-quickjsr
r-rcpp
r-rcppparallel
r-stanheaders
)
makedepends=(
r-bh
r-rcppeigen
)
checkdepends=(
r-testthat
)
optdepends=(
r-bayesplot
r-coda
r-knitr
r-rmarkdown
r-rstantools
r-rstudioapi
r-shinystan
r-testthat
r-v8
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz"
"fix-plugin.patch")
md5sums=('93aecb7454d73942e9b0c719b2723505'
'4bd2cd1d41029fb5d9b792b56d9cd524')
b2sums=('9aec4dd17e08cc1e6e8ed5c047c9ce07e2489f2ba85445b1d1aaff9853993f21f71f00024715fd41d05833563a5c1efe155bfd691938caf6d7535879201e6263'
'b5cb53f8d2e3cc84ebbed12e8439f59f5b1b62b747a3e6f9212750b882ee2833319af69cd973734670fba7bdbd924bc5a2d63733c60ddf437623bc83d3f3e4a7')
prepare() {
# fix Rcpp plugin to use system onetbb
patch -Np1 -i fix-plugin.patch
}
build() {
mkdir build
TZ=UTC R CMD INSTALL -l build "$_pkgname"
}
check() {
cd "$_pkgname/tests"
TZ=UTC 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"
}
|