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

_pkgname=gnm
_pkgver=1.1-5
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=4
pkgdesc="Generalized Nonlinear Models"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-only OR GPL-3.0-only')
depends=(
  blas
  r-qvcalc
  r-relimp
)
optdepends=(
  r-logmult
  r-testthat
  r-vcdextra
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('9f281639da06726027e78b0465563d0c')
b2sums=('87e29781a9843e3f14f055279f8ace668328e95c068ddbe36b5a0fbba367cbd04383ebd83f441700ded0135a1c5cb32a5c42d4933cad563b34b65890a3e92166')

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"
}