summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 69aeb80d97a33a3dd98d85f08267a428aab92351 (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
34
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Jooa <aur at (name) dot xyz>

_pkgname=geosphere
_pkgver=1.6-8
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Spherical Trigonometry"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-3.0-or-later')
depends=(
  r-rcpp
)
optdepends=(
  r-sf
  r-sp
  r-terra
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('476889ba8fc0ca3b70ad88fec879d148')
b2sums=('502a7d8927d62a066b1f737d54f27d5d6be268d2ff27503fa6cbbe4d95a92eb2fd2bd48b7c9de27ab2e6211dca68182e5083490c8a5f42efdcc0727224620e2b')

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