blob: 7065725099a1b9a26586b2f7d2f652abe5d85e12 (
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
|
# Maintainer: peippo <christoph+aur@christophfink.com>
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Grey Christoforo <first name at last name dot net>
_cranname=vctrs
_cranver=0.6.5
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Vector Helpers"
arch=(i686 x86_64)
url="https://cran.r-project.org/package=${_cranname}"
license=(MIT)
depends=(
"r>=3.5.0"
"r-cli>=3.4.0"
"r-glue"
"r-lifecycle>=1.0.3"
"r-rlang>=1.1.0"
)
optdepends=(
"r-bit64"
"r-covr"
"r-crayon"
"r-dplyr>=0.8.5"
"r-generics"
"r-knitr"
"r-pillar>=1.4.4"
"r-pkgdown>=2.0.1"
"r-rmarkdown"
"r-tibble>=3.1.3"
"r-waldo>=0.2.0"
"r-withr"
"r-xml2"
"r-zeallot"
)
# Due to a circular dependency on itself, r-vctrs cannot
# be checked on first build
# To run the unittests during subsequent builds, uncomment
# the lines below, as well as the `check()` function further
# down
# checkdepends=(
# "${optdepends[@]}"
# "r-testthat>=3.0.0"
# )
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
b2sums=("b48890fca0982b32c5d50c0d11221558fed8a2e50e4d3f5515d71f9eac4a79fd9823dbb866678d140a2c1e601f707daa0fbbf93f7e573d138d03e37850d77212")
build() {
mkdir -p "${srcdir}/build/"
R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}/build/"
}
# check() {
# cd "${srcdir}/${_cranname}/tests"
# R_LIBS="${srcdir}/build" Rscript --vanilla testthat.R
# }
package() {
install -dm0755 "${pkgdir}/usr/lib/R/library"
cp -a --no-preserve=ownership "${srcdir}/build/${_cranname}" "${pkgdir}/usr/lib/R/library"
if [[ -f "${_cranname}/LICENSE" ]]; then
install -Dm0644 "${_cranname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
fi
}
|