~dricottone/pkgbuilds

ref: b52f2235b1908767f5183db430df41e283aee320 pkgbuilds/r-gargle/PKGBUILD -rw-r--r-- 1009 bytes
b52f2235Dominic Ricottone README updates 1 year, 23 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=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"
}