diff options
author | AlexBocken | 2023-02-15 11:39:10 +0100 |
---|---|---|
committer | AlexBocken | 2023-02-15 11:39:10 +0100 |
commit | 8ea5cb67b398b9783f580bc6276179d85a4c9c90 (patch) | |
tree | 2982e399ab4aa854c4785ae980209f13da5d9665 | |
download | aur-8ea5cb67b398b9783f580bc6276179d85a4c9c90.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..73ea6cba3d99 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = r-httpcache + pkgdesc = Query Cache for HTTP Clients + pkgver = 1.2.0 + pkgrel = 1 + url = https://cran.r-project.org/package=httpcache + arch = any + license = MIT + depends = r>=3.0.0 + depends = r-digest + depends = r-httr>=1.0.0utils + optdepends = r-httptest>=3.0.0 + optdepends = r-knitr + optdepends = r-rmarkdown + optdepends = r-spelling + source = https://cran.microsoft.com/snapshot/2021-01-11/src/contrib/httpcache_1.2.0.tar.gz + sha256sums = 798c004f59826d1c2da16c58a212dc1facf225c29cc2d4a21e54053052a0da08 + +pkgname = r-httpcache diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9ec1b286120c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Alexander Bocken <alexander@bocken.org> + +_cranname=httpcache +_cranver=1.2.0 +_updatedate=2021-01-11 +pkgname=r-${_cranname,,} +pkgver=${_cranver//[:-]/.} +pkgrel=1 +pkgdesc="Query Cache for HTTP Clients" +arch=('any') +url="https://cran.r-project.org/package=${_cranname}" +license=(MIT) +depends=('r>=3.0.0' 'r-digest' 'r-httr>=1.0.0utils') +optdepends=('r-httptest>=3.0.0' 'r-knitr' 'r-rmarkdown' 'r-spelling') +source=(https://cran.microsoft.com/snapshot/${_updatedate}/src/contrib/${_cranname}_${_cranver}.tar.gz) +sha256sums=(798c004f59826d1c2da16c58a212dc1facf225c29cc2d4a21e54053052a0da08) + +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" +} |