blob: d0fbe40312ab518dd1c8dfb116d863a53de9cab7 (
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
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: sukanka <su975853527@gmail.com>
_pkgname=OpenMx
_pkgver=2.21.13
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Extended Structural Equation Modelling"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('Apache-2.0')
depends=(
onetbb
r-digest
r-lifecycle
r-rcpp
r-rcppparallel
)
makedepends=(
gcc-fortran
r-bh
r-rcppeigen
r-rpf
r-stanheaders
)
checkdepends=(
r-numderiv
r-testthat
)
optdepends=(
r-covr
r-ggplot2
r-ifatools
r-knitr
r-lme4
r-markdown
r-mvtnorm
r-numderiv
r-reshape2
r-rmarkdown
r-roxygen2
r-rpf
r-snowfall
r-testthat
r-umx
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('ac9af2077337e2bbb26356e0facea2e3')
b2sums=('9707b21081d700992bc1db918bb197bff2d7f0a98d25e101ed7966de00091a61fec404be85f52db9c54734e9f5a399fd69546473d50742a247c347f9a2386886')
build() {
mkdir build
# compilation needs a lot of memory
MAKEFLAGS+=" -j1"
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"
}
|