summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsukanka2022-07-21 23:09:06 +0800
committersukanka2022-07-21 23:09:06 +0800
commit1b4d31e18f4a7963ddae00a472fe71e7daf8fa61 (patch)
treec31b7eaba458a265cad950784abff5f1fa4e06f5
parent77f281a0339901d976f410bf703f3171fd74adea (diff)
downloadaur-r-usethis.tar.gz
takeover package
-rw-r--r--.SRCINFO47
-rw-r--r--PKGBUILD114
2 files changed, 66 insertions, 95 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cf8d92dc184..65992d5a8da 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,36 +1,29 @@
pkgbase = r-usethis
pkgdesc = Automate Package and Project Setup
pkgver = 2.1.6
- pkgrel = 2
+ pkgrel = 3
url = https://cran.r-project.org/package=usethis
arch = any
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
+ depends = r
+ depends = r-cli
+ depends = r-clipr
depends = r-crayon
- depends = r-curl>=2.7
- depends = r-desc>=1.4.0
- depends = r-fs>=1.3.0
- depends = r-gert>=1.4.1
- depends = r-gh>=1.2.1
- depends = r-glue>=1.3.0
+ depends = r-curl
+ depends = r-desc
+ depends = r-fs
+ depends = r-gert
+ depends = r-gh
+ depends = r-glue
depends = r-jsonlite
- depends = r-lifecycle>=1.0.0
+ depends = r-lifecycle
depends = r-purrr
depends = r-rappdirs
- depends = r-rlang>=1.0.0
- depends = r-rprojroot>=1.2
+ depends = r-rlang
+ depends = r-rprojroot
depends = r-rstudioapi
depends = r-whisker
- depends = r-withr>=2.3.0
+ depends = r-withr
depends = r-yaml
optdepends = r-covr
optdepends = r-knitr
@@ -38,13 +31,11 @@ pkgbase = r-usethis
optdepends = r-mockr
optdepends = r-pkgload
optdepends = r-rmarkdown
- optdepends = r-roxygen2>=7.1.2
- optdepends = r-spelling>=1.2
- optdepends = r-styler>=1.2.0
- optdepends = r-testthat>=3.1.0
+ optdepends = r-roxygen2
+ optdepends = r-spelling
+ optdepends = r-styler
+ optdepends = r-testthat
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
+ sha256sums = 31dc6707577065ac1d4acb7d4cbf135942727c5cc2699092198c544be86f6818
pkgname = r-usethis
diff --git a/PKGBUILD b/PKGBUILD
index c46d6808956..6ac6cbaa1a5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,78 +1,58 @@
-# Maintainer: Robert Greener <me@r0bert.dev>
-# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
+# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
-_cranname=usethis
-_cranver=2.1.6
-pkgname=r-${_cranname,,}
-pkgver=${_cranver//[:-]/.}
-pkgrel=2
-pkgdesc="Automate Package and Project Setup"
-arch=(any)
-url="https://cran.r-project.org/package=${_cranname}"
-license=(MIT)
+_pkgname=usethis
+_pkgver=2.1.6
+pkgname=r-${_pkgname,,}
+pkgver=2.1.6
+pkgrel=3
+pkgdesc='Automate Package and Project Setup'
+arch=('any')
+url="https://cran.r-project.org/package=${_pkgname}"
+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"
+ r
+ r-cli
+ r-clipr
+ r-crayon
+ r-curl
+ r-desc
+ r-fs
+ r-gert
+ r-gh
+ r-glue
+ r-jsonlite
+ r-lifecycle
+ r-purrr
+ r-rappdirs
+ r-rlang
+ r-rprojroot
+ r-rstudioapi
+ r-whisker
+ r-withr
+ r-yaml
)
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"
+ 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"
- "CRAN_MIT::https://cran.r-project.org/web/licenses/MIT")
-b2sums=("6007ce73a41747d42f37c79c3fe2d1f1563e534d2d8a6015ed8a4aaa6505ed5310f2f3a80def5d56dec9f8fb59ebf823615bedde568456afdda8aebb6222c08a"
- "22fe7f7fb60ace9cc3217127a3ea2ceee8d1821ae3d806dfe0f27d115a8e105251355a8f085ad31268884c94df64f51189676e71a2dd7bde6082dd50426cae01")
+source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
+sha256sums=('31dc6707577065ac1d4acb7d4cbf135942727c5cc2699092198c544be86f6818')
build() {
- 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
+ R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
}
package() {
- install -dm0755 "${pkgdir}/usr/lib/R/library"
-
- cp -a --no-preserve=ownership "build/${_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"
+ install -dm0755 "${pkgdir}/usr/lib/R/library"
+ cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
+ install -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
+# vim:set ts=2 sw=2 et: