# system requirements: git (optional) # Maintainer: Guoyi Zhang # Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com _pkgname=credentials _pkgver=2.0.1 pkgname=r-${_pkgname,,} pkgver=2.0.1 pkgrel=1 pkgdesc='Tools for Managing SSH and Git Credentials' arch=('any') url="https://cran.r-project.org/package=${_pkgname}" license=('MIT') depends=( r r-askpass r-curl r-jsonlite r-openssl r-sys ) optdepends=( git r-knitr r-rmarkdown r-testthat ) source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") sha256sums=('2c7cfc45bd4afa9a2c2b85d43e907b212da3468781e1b617737bd095253c358b') build() { R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}" } package() { install -dm0755 "${pkgdir}/usr/lib/R/library" cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library" install -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" } # vim:set ts=2 sw=2 et: