summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d71dd3fb6ef290b2e2f4e9047e8323cc1bbb1763 (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
32
33
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>

_pkgname=alphahull
_pkgver=2.5
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=3
pkgdesc="Generalization of the Convex Hull of a Sample of Points in the Plane"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-only OR GPL-3.0-only')
depends=(
  r-ggplot2
  r-interp
  r-r.utils
  r-sgeostat
  r-spatstat.geom
  r-spatstat.random
  r-splancs
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('1ea4cc665f6cde31c63cc9e50a6c801f')
b2sums=('ed8f9c06843683039b34d90e3c45613f60e49deeb5a16efecb58032a67e7b019ba4e9f10b831585f312c854eb54f5ede644182783992309d36f308eeb4a86f7f')

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