summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4073febc5d66a1b2cb16c618b9a4fb7081bbcce2 (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
# Maintainer: sukanka <su975853527@gmail.com>

_pkgname=gnorm
_pkgver=1.0.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=10
pkgdesc="Generalized Normal/Exponential Power Distribution"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later')
depends=(
  r
)
optdepends=(
  r-knitr
  r-rmarkdown
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('77860053c6b31b281801e89977cd7a67')
b2sums=('fd97810423d86987b66022969008f1d3ec3f1d1e88c1b646e2eee012e095a3d931cbd4603fcd2f2e3dd22759ff94224af2748142f1428f919038969990bd8f89')

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