~dricottone/pkgbuilds

ref: b52f2235b1908767f5183db430df41e283aee320 pkgbuilds/r-googlesheets4/PKGBUILD -rw-r--r-- 1.0 KiB
b52f2235Dominic Ricottone README updates 1 year, 24 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=googlesheets4
_cranver=1.1.1
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Access Google Sheets using the Sheets API V4"
arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
license=(MIT)
depends=('r>=3.6' r-cellranger 'r-cli>=3.0.0' r-curl 'r-gargle>=1.5.0' 'r-glue>=1.3.0' 'r-googledrive>=2.1.0' r-httr r-ids r-magrittr r-purrr r-rematch2 'r-rlang>=1.0.2' 'r-tibble>=2.1.1' 'r-vctrs>=0.2.3' r-lifecycle r-methods r-utils r-withr)
optdepends=(r-readr r-rmarkdown r-spelling r-testthat)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('c5cc63348c54b9de8492e7b12b249245746ea1ff33e306f12431f4fc9386fccf')

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