summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD40
1 files changed, 19 insertions, 21 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2c86e39c5bd..5b49de3583d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,26 @@
-# Maintainer: generated by script at https://github.com/zasdfgbnm/aurcran
-
-_pkgname=roxygen2
-_pkgnamelower=roxygen2
-_repo='http://cran.stat.ucla.edu/'
-_cran="https://cran.r-project.org/web/packages/$_pkgname/index.html"
-pkgname=r-$_pkgnamelower
-pkgver=5.0.1
+# Maintainer: Alex Branham <branham@utexas.edu>
+_cranname=roxygen2
+_cranver=6.0.1
+_pkgtar=${_cranname}_${_cranver}.tar.gz
+pkgname=r-roxygen2
+pkgver=${_cranver//[:-]/.}
pkgrel=1
-pkgdesc='in-source documentation for r'
-arch=(any)
-url="https://github.com/klutometis/roxygen"
+pkgdesc="In-Line Documentation for R"
+arch=('x86_64')
+url="https://cran.r-project.org/package=${_cranname}"
license=('GPL')
-depends=('r>=3.0.2' 'r-stringr>=0.5' 'r-stringi' 'r-brew' 'r-digest' 'r-rcpp>=0.11.0')
-makedepends=('curl' 'grep' 'python-html2text')
+depends=('r' 'r-stringr' 'r-stringi' 'r-brew' 'r-digest' 'r-desc' 'r-commonmark' 'r-xml2')
-pkgver() {
- curl "$_cran" 2>/dev/null|html2text|grep -oP '(?<=Version:).*'|tr '-' '.'|grep -o '[0-9\.]*'
-}
+optdepends=('r-testthat' 'r-knitr' 'r-devtools' 'r-rmarkdown' 'r-covr')
-build() {
- Rscript -e "install.packages(\"$_pkgname\", lib=\"$srcdir\", repos=\"$_repo\")"
-}
+source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
+md5sums=('53300ac3f27ff0998ebb5fbe3afc8b9f')
+build(){
+ R CMD INSTALL ${_pkgtar} -l $srcdir
+}
package() {
install -d "$pkgdir/usr/lib/R/library"
- cp -r "$srcdir/$_pkgname" "$pkgdir/usr/lib/R/library"
-} \ No newline at end of file
+ cp -r "$srcdir/$_cranname" "$pkgdir/usr/lib/R/library"
+}
+