Packages/prepare/r-ggthemes/PKGBUILD
2022-01-12 08:18:24 +00:00

50 lines
898 B
Bash

# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=ggthemes
_pkgver=4.2.4
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//[:-]/.}
pkgrel=1
pkgdesc="Extra Themes, Scales and Geoms for 'ggplot2'"
arch=('any')
url="https://cran.r-project.org/package=${_pkgname}"
license=('GPL')
depends=(
r
r-ggplot2
r-purrr
r-scales
r-stringr
r-tibble
)
optdepends=(
r-covr
r-dplyr
r-extrafont
r-glue
r-knitr
r-lattice
r-lintr
r-mapproj
r-maps
r-pander
r-rlang
r-rmarkdown
r-spelling
r-testthat
r-tidyr
r-vdiffr
r-withr
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('a')
build() {
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
}
package() {
install -dm0755 "${pkgdir}/usr/lib/R/library"
cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
}
# vim:set ts=2 sw=2 et: