mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
51 lines
1.2 KiB
Bash
51 lines
1.2 KiB
Bash
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
|
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
|
|
# Contributor: peippo <christoph+aur@christophfink.com>
|
|
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
|
|
# Contributor: Jooa <aur at (name) dot xyz>
|
|
|
|
_pkgname=raster
|
|
_pkgver=3.6-26
|
|
pkgname=r-${_pkgname,,}
|
|
pkgver=${_pkgver//-/.}
|
|
pkgrel=1
|
|
pkgdesc="Geographic Data Analysis and Modeling"
|
|
arch=(x86_64)
|
|
url="https://cran.r-project.org/package=${_pkgname}"
|
|
license=(GPL3)
|
|
depends=(
|
|
r-rcpp
|
|
r-sp
|
|
r-terra
|
|
)
|
|
checkdepends=(
|
|
r-tinytest
|
|
)
|
|
optdepends=(
|
|
r-exactextractr
|
|
r-fields
|
|
r-gstat
|
|
r-igraph
|
|
r-ncdf4
|
|
r-rastervis
|
|
r-sf
|
|
r-tinytest
|
|
)
|
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
|
md5sums=('ad7c711017003e97af9828e1547d14ab')
|
|
sha256sums=('c65777225a46ada699e70098f54c60cf191d15e454fac9440aca439a4dbd5592')
|
|
|
|
build() {
|
|
mkdir -p build
|
|
R CMD INSTALL "$_pkgname" -l build
|
|
}
|
|
|
|
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"
|
|
}
|