~dricottone/pkgbuilds

ref: 1db656feaf211a204e9c78d15c45671a166fece3 pkgbuilds/r-tidyr/PKGBUILD -rw-r--r-- 1017 bytes
1db656feDominic Ricottone Added r-rappdirs 1 year, 28 days 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
26
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: frichtlm <frichtlm@gmail.com>

_cranname=tidyr
_cranver=1.3.0
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=2
pkgdesc="Tidy Messy Data"
arch=(i686 x86_64)
url="https://cran.r-project.org/package=${_cranname}"
license=(MIT)
depends=('r>=3.4.0' 'r-cli>=3.4.1' 'r-dplyr>=1.0.10' r-glue 'r-lifecycle>=1.0.3' r-magrittr 'r-purrr>=1.0.1' 'r-rlang>=1.0.4' 'r-stringr>=1.5.0' 'r-tibble>=2.1.1' 'r-tidyselect>=1.2.0' 'r-vctrs>=0.5.2' 'r-cpp11>=0.4.0' r-utils)
optdepends=(r-covr r-data.table r-knitr r-readr r-repurrrsive r-rmarkdown r-testthat)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('8d532b9366fdd3ec9827b51830e559a49d073425007c766025f0e603964e0a9d')

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