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

_pkgname=tiff
_pkgver=0.1-12
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=2
pkgdesc="Read and Write TIFF Images"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-only OR GPL-3.0-only')
depends=(
  libtiff
  r
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('2e24ff9e6afffa8243c6d1a5356aa374')
b2sums=('1c9197bd392f7e9d805b4f7555e787fb4a131c7a8171538401ce41a8a4902a798bf70a903f8a22e35c9c0b34ae4e66144dd21fe07c59864bd0ac4a998eaf631b')

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