mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
49 lines
1 KiB
Bash
49 lines
1 KiB
Bash
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
|
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
|
|
|
|
_pkgname=terra
|
|
_pkgver=1.8-5
|
|
pkgname=r-${_pkgname,,}
|
|
pkgver=${_pkgver//-/.}
|
|
pkgrel=1
|
|
pkgdesc="Spatial Data Analysis"
|
|
arch=(x86_64)
|
|
url="https://cran.r-project.org/package=$_pkgname"
|
|
license=('GPL-3.0-or-later')
|
|
depends=(
|
|
gdal
|
|
geos
|
|
proj
|
|
r-rcpp
|
|
)
|
|
checkdepends=(
|
|
r-tinytest
|
|
systemd
|
|
)
|
|
optdepends=(
|
|
r-deldir
|
|
r-htmlwidgets
|
|
r-leaflet
|
|
r-ncdf4
|
|
r-sf
|
|
r-tinytest
|
|
r-xml
|
|
)
|
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
|
md5sums=('d320610ce15d8f232619e06fdd2867c5')
|
|
b2sums=('bf4e44e3c344ccf1767128d5874f227914b69698852849279055dcdcdd64f8b2ba0625e43777b402c48e591339fcabe9ce283b6712a8e73578c4d877c240fc79')
|
|
|
|
build() {
|
|
mkdir build
|
|
R CMD INSTALL -l build "$_pkgname"
|
|
}
|
|
|
|
check() {
|
|
cd "$_pkgname/tests"
|
|
R_LIBS="$srcdir/build" Rscript --vanilla tinytest.R
|
|
}
|
|
|
|
package() {
|
|
install -d "$pkgdir/usr/lib/R/library"
|
|
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
|
}
|