blob: 793fd2026255300f7775c8eb4da5bd5717232186 (
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
|
# Maintainer: peippo <christoph+aur@christophfink.com>
_cranname=colorspace
_cranver=2.1-1
pkgname=r-${_cranname,,}
pkgdesc="A Toolbox for Manipulating and Assessing Colors and Palettes"
url="https://cran.r-project.org/package=${_cranname}"
license=("BSD")
pkgver=${_cranver//[:-]/.}
pkgrel=1
arch=("i686" "x86_64")
depends=(
"r>=3.0.0"
)
optdepends=(
"r-cartocolor"
"r-colorbrewer"
"r-dplyr"
"r-ggplot2"
"r-jpeg"
"r-kernlab"
"r-kernsmooth"
"r-knitr"
"r-markdown"
"r-mass"
"r-mvtnorm"
"r-png"
"r-scales"
"r-scico"
"r-shiny"
"r-shinyjs"
"r-vcd"
"r-viridis"
"r-wesanderson"
)
makedepends=()
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
b2sums=("d18a20e16912775946f2afff2ad25e84d3275020134ae74a2e48d354414e8ce69334a3589bbfdff6617d1d447029abe29a95573854fe139054c6848348844bfb")
build() {
R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}"
}
package() {
install -dm0755 "${pkgdir}/usr/lib/R/library"
cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library"
if [[ -f "${_cranname}/LICENSE" ]]; then
install -Dm0644 "${_cranname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
fi
}
|