summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7e150cdb74fc1aed3f93fd34822dec06b9d49128 (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
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
# Contributor: Robert Greener <me@r0bert.dev>

_pkgname=CompQuadForm
_pkgver=1.4.3
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=11
pkgdesc="Distribution Function of Quadratic Forms in Normal Variables"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later')
depends=(
  r
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('e4cb74a3022e0653b46881ac7bc024fd')
b2sums=('48b46b02020032ca131b6f52a7555a6858ba30fb86c21842e3eda75757e8df886c0f88ca784bc53d50dbf4acfa581ac7618c1342d6fc10efba14122e80652eb9')

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