summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD40
2 files changed, 35 insertions, 31 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7c9de0697b0..dc537d9fc4b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,25 @@
pkgbase = r-roxygen2
- pkgdesc = in-source documentation for r
- pkgver = 5.0.1
+ pkgdesc = In-Line Documentation for R
+ pkgver = 6.0.1
pkgrel = 1
- url = https://github.com/klutometis/roxygen
- arch = any
+ url = https://cran.r-project.org/package=roxygen2
+ arch = x86_64
license = GPL
- makedepends = curl
- makedepends = grep
- makedepends = python-html2text
- depends = r>=3.0.2
- depends = r-stringr>=0.5
+ depends = r
+ depends = r-stringr
depends = r-stringi
depends = r-brew
depends = r-digest
- depends = r-rcpp>=0.11.0
+ depends = r-desc
+ depends = r-commonmark
+ depends = r-xml2
+ optdepends = r-testthat
+ optdepends = r-knitr
+ optdepends = r-devtools
+ optdepends = r-rmarkdown
+ optdepends = r-covr
+ source = https://cran.r-project.org/src/contrib/roxygen2_6.0.1.tar.gz
+ md5sums = 53300ac3f27ff0998ebb5fbe3afc8b9f
pkgname = r-roxygen2
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"
+}
+