blob: 77c120f075f47666423154bb10fd919376fff3d7 (
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>
_pkgname=rstpm2
_pkgver=1.6.6
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Smooth Survival Models, Including Generalized Survival Models"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-only OR GPL-3.0-only')
depends=(
blas
lapack
r-bbmle
r-fastghquad
r-mvtnorm
r-rcpp
)
makedepends=(
gcc-fortran
r-bh
r-rcpparmadillo
)
checkdepends=(
r-desolve
r-testthat
)
optdepends=(
r-desolve
r-eha
r-flexsurv
r-ggplot2
r-mstate
r-readstata13
r-scales
r-survpen
r-testthat
r-timereg
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz"
"fix-tests.patch")
md5sums=('73dbbc7872d1401f2c4455825c51c4b0'
'7e22eed527937e811f674953a465f9c8')
b2sums=('f266565247a3a8b2ca3cdaca4758befe6375633f2f3e29fcfde67ad7885b79099ec0bb80833626a770a03a2e6b63204a78a9a0ed2a0ef0ab5f57f2da0c302694'
'61bb8ab4fff5514887b2fb678f461cc468c6f70388ddd1e21638fd73389a7d5481720a19f93f1ba55b40e59108efe3d92a8c14703ff9e984400ce50cbeec5d11')
prepare() {
# skip failing tests
patch -Np1 -i fix-tests.patch
}
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"
}
|