~dricottone/pkgbuilds

ref: 3066bf128d19a5cecc7d802649050e1b3502f391 pkgbuilds/r-gargle/PKGBUILD -rw-r--r-- 1009 bytes
3066bf12Dominic Ricottone Added r-base64enc 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
26
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Pranav K Anupam <pranavanupam@yahoo.com>

_cranname=gargle
_cranver=1.5.2
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=2
pkgdesc="Utilities for Working with Google APIs"
arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
license=(MIT)
depends=('r>=3.6' 'r-cli>=3.0.1' 'r-fs>=1.3.1' 'r-glue>=1.3.0' 'r-httr>=1.4.5' r-jsonlite r-lifecycle r-openssl r-rappdirs 'r-rlang>=1.1.0' r-withr r-stats r-utils)
optdepends=(r-aws.ec2metadata r-aws.signature r-covr r-httpuv r-knitr r-rmarkdown r-sodium r-spelling r-testthat)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('4a5beb046eb50a168b4baf5d1fcd8ac20d698e7fcb6b6ef46a436ded5b039001')

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