summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Branham2018-05-27 16:06:43 -0500
committerAlex Branham2018-05-27 16:06:43 -0500
commit9121bbc2e9787b2c83e067a014e88050548c54e0 (patch)
treeecf2fe3d824976c405a011b1a9ad2ae8bcf638ac
parent854bed93a4e5eb9301c2037997859976d69e5b05 (diff)
downloadaur-9121bbc2e9787b2c83e067a014e88050548c54e0.tar.gz
Upkg: 0.6.15
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD43
2 files changed, 28 insertions, 35 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5a0f887737d..e4d7a0ff868 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,14 @@
pkgbase = r-digest
- pkgdesc = create compact hash digests of r objects
- pkgver = 0.6.10
- pkgrel = 1
- url = http://dirk.eddelbuettel.com/code/digest.html
- arch = any
- license = GPL2
- makedepends = curl
- makedepends = grep
- makedepends = python-html2text
- depends = r>=2.4.1
+pkgdesc = Create compact hash digests of R objects
+pkgver = 0.6.15
+pkgrel = 1
+url = https://cran.r-project.org/web/packages/digest/index.html
+arch = x86_64
+license = GPL
+optdepends = r-knitr
+optdepends = r-rmarkdown
+source = https://cran.r-project.org/src/contrib/digest_0.6.15.tar.gz
+md5sums = 94fe9e133a7fb19a89e05daac7b5e9da
pkgname = r-digest
diff --git a/PKGBUILD b/PKGBUILD
index 8376d8aca29..cb5b752999f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,21 @@
-# Maintainer: generated by script at https://github.com/zasdfgbnm/aurcran
-
-_pkgname=digest
-_pkgnamelower=digest
-_repo='http://cran.stat.ucla.edu/'
-_cran="https://cran.r-project.org/web/packages/$_pkgname/index.html"
-pkgname=r-$_pkgnamelower
-pkgver=0.6.10
+# Maintainer: Alex Branham <branham@utexas.edu>
+# Contributor: generated by script at https://github.com/zasdfgbnm/aurcran
+_cranname=digest
+_cranver=0.6.15
+pkgname=r-digest
+pkgver=${_cranver//[:-]/.}
pkgrel=1
-pkgdesc='create compact hash digests of r objects'
-arch=(any)
-url="http://dirk.eddelbuettel.com/code/digest.html"
-license=('GPL2')
-depends=('r>=2.4.1')
-makedepends=('curl' 'grep' 'python-html2text')
-
-pkgver() {
- curl "$_cran" 2>/dev/null|html2text|grep -oP '(?<=Version:).*'|tr '-' '.'|grep -o '[0-9\.]*'
-}
-
-build() {
- Rscript -e "install.packages(\"$_pkgname\", lib=\"$srcdir\", repos=\"$_repo\")"
-}
+pkgdesc="Create compact hash digests of R objects"
+url="https://cran.r-project.org/web/packages/${_cranname}/index.html"
+arch=('x86_64')
+license=('GPL')
+optdepends=('r-knitr'
+ 'r-rmarkdown')
+source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
+md5sums=('94fe9e133a7fb19a89e05daac7b5e9da')
package() {
- install -d "$pkgdir/usr/lib/R/library"
- cp -r "$srcdir/$_pkgname" "$pkgdir/usr/lib/R/library"
-} \ No newline at end of file
+ mkdir -p ${pkgdir}/usr/lib/R/library
+ cd "${srcdir}"
+ R CMD INSTALL ${_cranname} -l ${pkgdir}/usr/lib/R/library
+}