summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Greener2022-06-02 15:41:20 +0100
committerRobert Greener2022-06-02 15:41:20 +0100
commit1894f144a6b359a0e367a7876342df39ae734f4c (patch)
treee9fa6e4d831cd60e75b0da86fc89a0732c9fd231
parent14b76ae07f576432cc3f6cc44f947c6b75e3eeec (diff)
downloadaur-1894f144a6b359a0e367a7876342df39ae734f4c.tar.gz
New upstream release
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD71
2 files changed, 80 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e9df67ef16b..2513a71502c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,17 @@
pkgbase = r-usethis
pkgdesc = Automate Package and Project Setup
- pkgver = 2.1.5
+ pkgver = 2.1.6
pkgrel = 1
url = https://cran.r-project.org/package=usethis
arch = any
- license = GPL3
+ license = MIT
+ checkdepends = r-magick
+ checkdepends = r-rmarkdown
+ checkdepends = r-roxygen2>=7.1.2
+ checkdepends = r-spelling>=1.2
+ checkdepends = r-styler>=1.2.0
+ checkdepends = r-testthat>=3.1.0
+ checkdepends = r-mockr
depends = r>=3.4
depends = r-cli>=3.0.1
depends = r-clipr>=0.3.0
@@ -19,7 +26,7 @@ pkgbase = r-usethis
depends = r-lifecycle>=1.0.0
depends = r-purrr
depends = r-rappdirs
- depends = r-rlang>=0.4.10
+ depends = r-rlang>=1.0.0
depends = r-rprojroot>=1.2
depends = r-rstudioapi
depends = r-whisker
@@ -31,11 +38,13 @@ pkgbase = r-usethis
optdepends = r-mockr
optdepends = r-pkgload
optdepends = r-rmarkdown
- optdepends = r-roxygen2
- optdepends = r-spelling
- optdepends = r-styler
- optdepends = r-testthat
- source = https://cran.r-project.org/src/contrib/usethis_2.1.5.tar.gz
- sha256sums = 7d539e16ecdc1cd45ba1a215d42d8b9c16bc38280ddd27048003dbb37b16f052
+ optdepends = r-roxygen2>=7.1.2
+ optdepends = r-spelling>=1.2
+ optdepends = r-styler>=1.2.0
+ optdepends = r-testthat>=3.1.0
+ source = https://cran.r-project.org/src/contrib/usethis_2.1.6.tar.gz
+ source = CRAN_MIT::https://cran.r-project.org/web/licenses/MIT
+ b2sums = 6007ce73a41747d42f37c79c3fe2d1f1563e534d2d8a6015ed8a4aaa6505ed5310f2f3a80def5d56dec9f8fb59ebf823615bedde568456afdda8aebb6222c08a
+ b2sums = 22fe7f7fb60ace9cc3217127a3ea2ceee8d1821ae3d806dfe0f27d115a8e105251355a8f085ad31268884c94df64f51189676e71a2dd7bde6082dd50426cae01
pkgname = r-usethis
diff --git a/PKGBUILD b/PKGBUILD
index a1554537863..ec2fe079a46 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,78 @@
+# Maintainer: Robert Greener <me@r0bert.dev>
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
_cranname=usethis
-_cranver=2.1.5
+_cranver=2.1.6
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Automate Package and Project Setup"
arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
-license=(GPL3)
-depends=('r>=3.4' 'r-cli>=3.0.1' 'r-clipr>=0.3.0' r-crayon 'r-curl>=2.7' 'r-desc>=1.4.0' 'r-fs>=1.3.0' 'r-gert>=1.4.1' 'r-gh>=1.2.1' 'r-glue>=1.3.0' r-jsonlite 'r-lifecycle>=1.0.0' r-purrr r-rappdirs 'r-rlang>=0.4.10' 'r-rprojroot>=1.2' r-rstudioapi r-whisker 'r-withr>=2.3.0' r-yaml)
-optdepends=(r-covr r-knitr r-magick r-mockr r-pkgload r-rmarkdown r-roxygen2 r-spelling r-styler r-testthat)
-source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
-sha256sums=('7d539e16ecdc1cd45ba1a215d42d8b9c16bc38280ddd27048003dbb37b16f052')
+license=(MIT)
+depends=(
+ "r>=3.4"
+ "r-cli>=3.0.1"
+ "r-clipr>=0.3.0"
+ r-crayon
+ "r-curl>=2.7"
+ "r-desc>=1.4.0"
+ "r-fs>=1.3.0"
+ "r-gert>=1.4.1"
+ "r-gh>=1.2.1"
+ "r-glue>=1.3.0"
+ r-jsonlite
+ "r-lifecycle>=1.0.0"
+ r-purrr
+ r-rappdirs
+ "r-rlang>=1.0.0"
+ "r-rprojroot>=1.2"
+ r-rstudioapi
+ r-whisker
+ "r-withr>=2.3.0"
+ r-yaml
+)
+checkdepends=(
+ r-magick
+ r-rmarkdown
+ "r-roxygen2>=7.1.2"
+ "r-spelling>=1.2"
+ "r-styler>=1.2.0"
+ "r-testthat>=3.1.0"
+ "r-mockr"
+)
+optdepends=(
+ r-covr
+ r-knitr
+ r-magick
+ r-mockr
+ r-pkgload
+ r-rmarkdown
+ "r-roxygen2>=7.1.2"
+ "r-spelling>=1.2"
+ "r-styler>=1.2.0"
+ "r-testthat>=3.1.0"
+)
+source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz"
+ "CRAN_MIT::https://cran.r-project.org/web/licenses/MIT")
+b2sums=("6007ce73a41747d42f37c79c3fe2d1f1563e534d2d8a6015ed8a4aaa6505ed5310f2f3a80def5d56dec9f8fb59ebf823615bedde568456afdda8aebb6222c08a"
+ "22fe7f7fb60ace9cc3217127a3ea2ceee8d1821ae3d806dfe0f27d115a8e105251355a8f085ad31268884c94df64f51189676e71a2dd7bde6082dd50426cae01")
build() {
- R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}"
+ mkdir -p build
+ R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}/build"
+}
+
+check() {
+ cd "${_cranname}/tests"
+ R_LIBS="${srcdir}/build" NOT_CRAN=true Rscript --vanilla testthat.R
}
package() {
- install -dm0755 "${pkgdir}/usr/lib/R/library"
+ install -dm0755 "${pkgdir}/usr/lib/R/library"
+
+ cp -a --no-preserve=ownership "${srcdir}/build" "${pkgdir}/usr/lib/R/library"
- cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library"
+ install -Dm644 "${_cranname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 CRAN_MIT "${pkgdir}/usr/share/licenses/${pkgname}/MIT"
}