summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Branham2018-05-31 11:39:04 -0500
committerAlex Branham2018-05-31 11:39:04 -0500
commit5084ac0e266c9b7f4fd040e11a2d98f4c4b5b1c0 (patch)
tree222a5b76e52c1dff6df9cbdc231f91de05abac31
parent5d78f4e90d0b3a811418993a60a2f8cdd5da60e9 (diff)
downloadaur-5084ac0e266c9b7f4fd040e11a2d98f4c4b5b1c0.tar.gz
Upkg 2.0.0
-rw-r--r--.SRCINFO28
-rw-r--r--PKGBUILD40
2 files changed, 36 insertions, 32 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cd280629c11..f848d876276 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,25 @@
pkgbase = r-testthat
- pkgdesc = unit testing for r
- pkgver = 1.0.2
+ pkgdesc = Unit Testing for R
+ pkgver = 2.0.0
pkgrel = 1
- url = https://github.com/hadley/testthat
- arch = any
+ url = https://cran.r-project.org/package=testthat
+ arch = x86_64
license = MIT
- makedepends = curl
- makedepends = grep
- makedepends = python-html2text
- depends = r>=3.1.0
- depends = r-digest
+ depends = r
+ depends = r-cran-cli
depends = r-crayon
- depends = r-praise
+ depends = r-digest
depends = r-magrittr
- depends = r-r6
+ depends = r-praise
+ depends = r-rlang
+ depends = r-withr
+ optdepends = r-covr
+ optdepends = r-devtools
+ optdepends = r-knitr
+ optdepends = r-rmarkdown
+ optdepends = r-xml2
+ source = https://cran.r-project.org/src/contrib/testthat_2.0.0.tar.gz
+ md5sums = 36765e0ad2e29b825b4c6088b1a34458
pkgname = r-testthat
diff --git a/PKGBUILD b/PKGBUILD
index 627e46ecfa7..251b052586e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,26 @@
-# Maintainer: generated by script at https://github.com/zasdfgbnm/aurcran
-
-_pkgname=testthat
-_pkgnamelower=testthat
-_repo='http://cran.stat.ucla.edu/'
-_cran="https://cran.r-project.org/web/packages/$_pkgname/index.html"
-pkgname=r-$_pkgnamelower
-pkgver=1.0.2
+# Maintainer: Alex Branham <branham@utexas.edu>
+_cranname=testthat
+_cranver=2.0.0
+_pkgtar=${_cranname}_${_cranver}.tar.gz
+pkgname=r-testthat
+pkgver=${_cranver//[:-]/.}
pkgrel=1
-pkgdesc='unit testing for r'
-arch=(any)
-url="https://github.com/hadley/testthat"
+pkgdesc="Unit Testing for R"
+arch=('x86_64')
+url="https://cran.r-project.org/package=${_cranname}"
license=('MIT')
-depends=('r>=3.1.0' 'r-digest' 'r-crayon' 'r-praise' 'r-magrittr' 'r-r6')
-makedepends=('curl' 'grep' 'python-html2text')
+depends=('r' 'r-cran-cli' 'r-crayon' 'r-digest' 'r-magrittr' 'r-praise' 'r-rlang' 'r-withr')
-pkgver() {
- curl "$_cran" 2>/dev/null|html2text|grep -oP '(?<=Version:).*'|tr '-' '.'|grep -o '[0-9\.]*'
-}
+optdepends=('r-covr' 'r-devtools' 'r-knitr' 'r-rmarkdown' 'r-xml2')
-build() {
- Rscript -e "install.packages(\"$_pkgname\", lib=\"$srcdir\", repos=\"$_repo\")"
-}
+source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
+md5sums=('36765e0ad2e29b825b4c6088b1a34458')
+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"
+}
+