diff options
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 38 |
3 files changed, 41 insertions, 10 deletions
@@ -1,12 +1,15 @@ pkgbase = r-curl pkgdesc = A Modern and Flexible Web Client for R pkgver = 4.3.2 - pkgrel = 1 + pkgrel = 2 url = https://cran.r-project.org/package=curl arch = i686 arch = x86_64 license = MIT - depends = r>=3.0.0 + checkdepends = r-httpuv + checkdepends = r-testthat + checkdepends = r-webutils + depends = r depends = curl optdepends = r-spelling optdepends = r-testthat @@ -17,6 +20,8 @@ pkgbase = r-curl optdepends = r-httpuv optdepends = r-webutils source = https://cran.r-project.org/src/contrib/curl_4.3.2.tar.gz + source = R-MIT-TEMPLATE::https://cran.r-project.org/web/licenses/MIT sha256sums = 90b1facb4be8b6315bb3d272ba2dd90b88973f6ea1ab7f439550230f8500a568 + sha256sums = e76e4aad5d3d9d606db6f8c460311b6424ebadfce13f5322e9bae9d49cc6090b pkgname = r-curl diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..018a3de08144 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!PKGBUILD +!.SRCINFO +!.gitignore @@ -1,4 +1,5 @@ -# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com +# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com> +# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com # Contributor: Kibouo <csonka.mihaly@hotmail.com> # Contributor: Ward Segers <w@rdsegers.be> # Contributor: Alex Branham <branham@utexas.edu> @@ -7,22 +8,43 @@ _cranname=curl _cranver=4.3.2 pkgname=r-${_cranname,,} pkgver=${_cranver//[:-]/.} -pkgrel=1 +pkgrel=2 pkgdesc="A Modern and Flexible Web Client for R" arch=(i686 x86_64) url="https://cran.r-project.org/package=${_cranname}" license=(MIT) -depends=('r>=3.0.0' curl) -optdepends=(r-spelling r-testthat r-knitr r-jsonlite r-rmarkdown r-magrittr r-httpuv r-webutils) -source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") -sha256sums=('90b1facb4be8b6315bb3d272ba2dd90b88973f6ea1ab7f439550230f8500a568') +depends=(r curl) +checkdepends=(r-httpuv r-testthat r-webutils) +optdepends=( + r-spelling + r-testthat + r-knitr + r-jsonlite + r-rmarkdown + r-magrittr + r-httpuv + r-webutils +) +source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz" + "R-MIT-TEMPLATE::https://cran.r-project.org/web/licenses/MIT") +sha256sums=('90b1facb4be8b6315bb3d272ba2dd90b88973f6ea1ab7f439550230f8500a568' + 'e76e4aad5d3d9d606db6f8c460311b6424ebadfce13f5322e9bae9d49cc6090b') build() { - R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}" + mkdir -p build + R CMD INSTALL "${_cranname}" -l "${srcdir}/build" +} + +check() { + cd "${_cranname}/tests" + R_LIBS="${srcdir}/build" NOT_CRAN=true R --vanilla -q -f testthat.R } package() { install -dm0755 "${pkgdir}/usr/lib/R/library" - cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library" + cp -a --no-preserve=ownership "build/${_cranname}" "${pkgdir}/usr/lib/R/library" + + install -Dm644 R-MIT-TEMPLATE "${pkgdir}/usr/share/licenses/${pkgname}/MIT" + install -Dm644 "${_cranname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |