summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e908065acc17e679e4abf242801119ef161fefe (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: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>

_pkgname=rsq
_pkgver=2.7
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="R-Squared and Related Measures"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later')
depends=(
  r-deming
  r-deriv
  r-lme4
  r-mcr
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('27d756695fbf6abc04eb702000fd65ce')
b2sums=('c660b8c617a733de44e9a9c7947cf70e1cbefc43e6d5256df0d781907072c40185bd090aadbf7c8b4a6eabc2ca16c425678cc1df813ff8369b713a6aa3b310b9')

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