summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 126f28684b48b2a59137d6ed2361c6e952b75fc2 (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=dichromat
_pkgver=2.0-0.1
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=9
pkgdesc="Color Schemes for Dichromats"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-only')
depends=(
  r
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('ce89c0b9bec34cd2d0a4ba4ec64024fb')
b2sums=('09dd81d2556dd6311cda1a01a6be182dd5d840fc96c75914b849e8379a1268348b90c43c646982c88b05001ee83785cb8d86f84b8dbb0d68c95a2e4fd214b4cf')

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