# Maintainer: Pekka Ristola # Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com # Contributor: Jooa _pkgname=geosphere _pkgver=1.5-18 pkgname=r-${_pkgname,,} pkgver=${_pkgver//-/.} pkgrel=2 pkgdesc="Spherical Trigonometry" arch=(x86_64) url="https://cran.r-project.org/package=$_pkgname" license=('GPL-3.0-or-later') depends=( r-rcpp r-sp ) optdepends=( r-raster ) source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") md5sums=('46dd202b43575a2e12a2bf93723dbddf') b2sums=('ef2d0b5349bde7214e05fea24eb6c3bbd5228ab0af8deec8eb88c990279f0e70548e3ba548c4ab446679d97a02683ac87f5280b9fa1b128954f1dc33aceace21') 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" }