~dricottone/pkgbuilds

pkgbuilds/r-reprex/PKGBUILD -rw-r--r-- 1.0 KiB
1042c035Dominic Ricottone Added r-textdata 4 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: Pranav K Anupam <pranavanupam@yahoo.com>

_cranname=reprex
_cranver=2.0.2
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=3
pkgdesc="Prepare Reproducible Example Code via the Clipboard"
arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
license=(MIT)
depends=('r>=3.4' 'r-callr>=3.6.0' 'r-cli>=3.2.0' 'r-clipr>=0.4.0' r-fs r-glue 'r-knitr>=1.23' r-lifecycle 'r-rlang>=1.0.0' r-rmarkdown r-rstudioapi 'r-withr>=2.3.0' r-utils pandoc)
optdepends=(r-covr r-fortunes r-miniui r-mockr r-rprojroot r-sessioninfo r-shiny r-spelling r-styler r-testthat)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('a85b16e26112364a65c886efea050df08c17aadf1411fd14ec27d9ef13e87092')

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