~dricottone/pkgbuilds

ref: ac15488cbf19f2f4e9d53cb9623195f6b24ae82a pkgbuilds/r-scales/PKGBUILD -rw-r--r-- 882 bytes
ac15488cDominic Ricottone Added r-tidyverse 11 months ago
                                                                                
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
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com

_cranname=scales
_cranver=1.2.1
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Scale Functions for Visualization"
arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
license=(MIT)
depends=('r>=3.2' 'r-farver>=2.0.3' r-labeling r-lifecycle 'r-munsell>=0.5' r-r6 r-rcolorbrewer 'r-rlang>=1.0.0' r-viridislite)
optdepends=(r-bit64 r-covr r-dichromat r-ggplot2 r-hms r-stringi r-testthat r-waldo)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('59453e6dbdafee93dfb101e4d86048a62a12898134259d3ef02d65aeec57ed08')

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"
}