summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d88d998c6ad5f6455d1356057eb89426d0911fb (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
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>

_pkgname=gllvm
_pkgver=1.4.3
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=3
pkgdesc="Generalized Linear Latent Variable Models"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-only')
depends=(
  r-alabama
  r-fishmod
  r-mvabund
  r-nloptr
  r-statmod
  r-tmb
)
makedepends=(
  r-rcppeigen
)
optdepends=(
  r-corrplot
  r-gclus
  r-knitr
  r-rmarkdown
  r-testthat
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('e07eb19b36dcc3af0525648d6492d150')
b2sums=('b16f0446c1ddb888bc38b0a30996d3d3299651320a4129a35025a32de9d36181b2859793a6f35d9140d6ef7427af4325f705db0e96866bda7cb68feeab2587c7')

build() {
  mkdir build
  R CMD INSTALL -l build "$_pkgname"
}

package() {
  install -d "$pkgdir/usr/lib/R/library"
  cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
}