summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 39b2cebe2f68c62553969e69bedb94e78d16248f (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>

_pkgname=zCompositions
_pkgver=1.5.0-4
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Treatment of Zeros, Left-Censored and Missing Values in Compositional Data Sets"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later')
depends=(
  r-nada
  r-truncnorm
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('b0276e195b69aa82ee5bf1a8e5647257')
b2sums=('3900619aa040e9e587ae8a19059048e11672f25256ce3e688c9c42840b453bd51f253d4739494b832bb8bbf0a9c88a0487ab9f68219ce5fcfb58b9de7e45a3b7')

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