# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Pranav K Anupam <pranavanupam@yahoo.com>
_cranname=googledrive
_cranver=2.1.1
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="An Interface to Google Drive"
arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
license=(MIT)
depends=('r>=3.6' 'r-cli>=3.0.0' 'r-gargle>=1.5.0' 'r-glue>=1.4.2' r-httr r-jsonlite r-lifecycle r-magrittr 'r-pillar>=1.9.0' 'r-purrr>=1.0.1' 'r-rlang>=1.0.2' 'r-tibble>=2.0.0' r-uuid 'r-vctrs>=0.3.0' r-withr r-utils)
optdepends=(r-curl r-dplyr r-knitr r-mockr r-rmarkdown r-spelling r-testthat)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('0b8b4f74ba3630b0347249a32a80bc5fc2e8b63ad2952702f30162bd2d38fb82')
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"
}