blob: 038f0541d1990df462fe477810d0ee62805c698b (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: sukanka <su975853527@gmail.com>
_pkgname=stars
_pkgver=0.6-7
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Spatiotemporal Arrays, Raster and Vector Data Cubes"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=(Apache)
depends=(
r-abind
r-classint
r-rlang
r-sf
r-units
)
checkdepends=(
r-cubble
r-dplyr
r-ncmeta
r-raster
r-testthat
)
optdepends=(
r-cairo
r-clue
r-covr
r-cubble
r-cubelyr
r-digest
r-dplyr
r-exactextractr
r-fnn
r-future.apply
r-ggforce
r-ggplot2
r-ggthemes
r-gstat
r-httr
r-jsonlite
r-knitr
r-lwgeom
r-mapdata
r-maps
r-ncdfgeom
r-ncmeta
r-openstreetmap
r-pbapply
r-pcict
r-plm
r-randomforest
r-raster
r-rmarkdown
r-rnetcdf
r-sp
r-spacetime
r-spatstat
r-spatstat.geom
r-starsdata
r-terra
r-testthat
r-tibble
r-tidyr
r-tsibble
r-viridis
r-xts
r-zoo
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('f746ae18de570b68dbe5b0c4ec869457')
b2sums=('90f86e34787e3060394c6c17984c4be9053b89df6a5d80fc7693791ec73d41009eaac3850b0af718ee3dd76ae26f3b8521c3053a5a492ffddb51ae01083d60f8')
build() {
mkdir build
R CMD INSTALL -l build "$_pkgname"
}
check() {
cd "$_pkgname/tests"
R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R
}
package() {
install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
}
|