summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAlex Branham2018-05-29 14:16:44 -0500
committerAlex Branham2018-05-29 14:16:44 -0500
commitab67c88bcb57b7d51160d4c35e2680072c0cae72 (patch)
tree2c1174d703d584037735fbd21c1821a2616f2627 /PKGBUILD
downloadaur-ab67c88bcb57b7d51160d4c35e2680072c0cae72.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..62d836be9b9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Alex Branham <branham@utexas.edu>
+_cranname=rvest
+_cranver=0.3.2
+_pkgtar=${_cranname}_${_cranver}.tar.gz
+pkgname=r-rvest
+pkgver=${_cranver//[:-]/.}
+pkgrel=1
+pkgdesc="Easily Harvest (Scrape) Web Pages"
+arch=('any')
+url="https://cran.r-project.org/web/packages/${_cranname}/index.html"
+license=('GPL3')
+depends=('r' 'r-xml2' 'r-httr' 'r-selectr' 'r-magrittr')
+
+optdepends=('r-testthat' 'r-knitr' 'r-png' 'r-stringi' 'r-rmarkdown' 'r-covr')
+
+source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
+md5sums=('78c88740850e375fc5da50d37734d1b2')
+
+build(){
+ R CMD INSTALL ${_pkgtar} -l $srcdir
+}
+package() {
+ install -d "$pkgdir/usr/lib/R/library"
+ cp -r "$srcdir/$_cranname" "$pkgdir/usr/lib/R/library"
+}
+