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

_pkgname=gpls
_pkgver=1.76.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Classification using generalized partial least squares"
arch=(any)
url="https://bioconductor.org/packages/$_pkgname"
license=('Artistic-2.0')
depends=(
  r
)
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('f96edbb21515f81e81359eb7107e6b0d')
b2sums=('efb8ac48b221b4e2feb2f32cf5028b60ad18c7f259ce3158b611527c647c2d6a977123cedd6f95f781f4f0b3bf3519cf9a2591abe8db8f92f3a9a92f7e16b120')

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