blob: d3f686c265a6c52ae407e1413e3312f4a7de0352 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
_pkgname=spdep
_pkgver=1.3-6
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Spatial Dependence: Weighting Schemes, Statistics"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later')
depends=(
r-deldir
r-e1071
r-s2
r-sf
r-sp
r-spdata
r-units
)
checkdepends=(
r-tinytest
)
optdepends=(
r-classint
r-dbscan
r-ggplot2
r-igraph
r-knitr
r-rcolorbrewer
r-rgeoda
r-rmarkdown
r-rspectra
r-spam
r-spatialreg
r-tinytest
r-tmap
r-xtable
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('6bad5883def5557189356fb0a1a79f04')
b2sums=('0360f30ea971095c90216542f576f952609a14a336ac17175e57f85531874c592a0beeb60a836452096651d8978f54b9e38fbf4c04e471d95e7dc831b2a17776')
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"
}
|