summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 033a91678072165116b8bcee90b9b75d047c9006 (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
# Maintainer: Pranav K Anupam <pranavanupam@yahoo.com>
_cranname=reprex
_cranver=2.0.1
pkgname=r-reprex
pkgver=${_cranver//[:-]/.}
_pkgtar=${_cranname}_${_cranver}.tar.gz
pkgrel=1
pkgdesc='Prepare Reproducible Example Code via the Clipboard'
arch=('any')
url='https://cran.r-project.org/package=reprex'
license=('MIT')
depends=('r>=3.3' 'pandoc>=2.0' 'r-callr>=3.6.0' 'r-cli>=2.3.1' 'r-clipr>=0.4.0' 'r-fs' 'r-glue' 'r-knitr>=1.23' 'r-rlang>=0.4.0' 'r-rmarkdown' 'r-rstudioapi' 'r-withr>=2.3.0')
optdepends=( 'r-covr' 'r-fortunes'  'r-miniui' 'r-mockr' 'r-rprojroot' 'r-sessioninfo' 'r-shiny' 'r-spelling' 'r-styler>=1.2.0' 'r-testthat>=3.0.2')
sha1sums=('f22f7f4a7a27fd4bd84038cd28c58e4aad99271e')
source=("https://cran.r-project.org/src/contrib/${_pkgtar}")


build(){
    cd "${srcdir}"
    R CMD INSTALL ${_pkgtar} -l ${srcdir}
}
package() {
    cd "${scrdir}"
    install -dm0755 "$pkgdir/usr/lib/R/library"
    cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library"
}