summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6482950558e13e46403de3d4a181474c9ec7d8f8 (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: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Alex Branham <branham@utexas.edu>

_pkgname=CVST
_pkgver=0.2-3
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=3
pkgdesc="Fast Cross-Validation via Sequential Testing"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later')
depends=(
  r-kernlab
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('08032c05dcea2d5ac36e119dcadca240')
b2sums=('b3363971e9284e080ac8cf3ae9e5e75945c7cd0cbafe323ce27c32ef6b5521e4e5159fbc9ece0478ca6c8cacb8b3d23e4a8b9fbffdf57979e04d254800589e4b')

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