diff options
author | Christoph Fink | 2023-03-22 12:27:14 +0200 |
---|---|---|
committer | Christoph Fink | 2023-03-22 12:27:14 +0200 |
commit | 136e0ee1195c224a2ab34fe8a24d286cedfc51a7 (patch) | |
tree | acc5b8a99e1e3fbe0955ca61b25dba3e71839e4b | |
download | aur-136e0ee1195c224a2ab34fe8a24d286cedfc51a7.tar.gz |
Initial upload: r-anytime 0.3.9-1
Initial upload: r-asciicast 2.3.0-1
Initial upload: r-decor 1.0.1-1
Initial upload: r-distro 0.1.0-1
Initial upload: r-gettz 0.0.5-1
Initial upload: r-pak 0.4.0-1
Initial upload: r-parsedate 1.3.1-1
Initial upload: r-pkgcache 2.0.4-1
Initial upload: r-pkgdepends 0.4.0-1
Initial upload: r-pkgsearch 3.1.2-1
upgpkg: r-pkgload 1.3.2-2
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9509460dfb59 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = r-distro + pkgdesc = Linux Distribution Properties + pkgver = 0.1.0 + pkgrel = 1 + url = https://cran.r-project.org/package=distro + arch = any + license = Apache + depends = r + source = https://cran.r-project.org/src/contrib/distro_0.1.0.tar.gz + b2sums = c3b4cd68b4b46fb57067fb49eb4bf65293d7aab94ca3dedc9a1a6044204bda74aad35316daed57d330084b661cd76a9a5f7890d42bbff3f191a42f46ab330b94 + +pkgname = r-distro diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c97c16dd6d32 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: peippo <christoph+aur@christophfink.com> + +_cranname=distro +_cranver=0.1.0 +pkgname=r-${_cranname,,} +pkgdesc="Linux Distribution Properties" +url="https://cran.r-project.org/package=${_cranname}" +license=("Apache") +pkgver=${_cranver//[:-]/.} +pkgrel=1 + +arch=("any") +depends=( + "r" +) + +# tests fail in chroot (cannot detect distro) + +# checkdepends=( +# "${optdepends[@]}" +# "r-testthat" +# ) + +source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") +b2sums=("c3b4cd68b4b46fb57067fb49eb4bf65293d7aab94ca3dedc9a1a6044204bda74aad35316daed57d330084b661cd76a9a5f7890d42bbff3f191a42f46ab330b94") + +build() { + mkdir -p "${srcdir}/build/" + R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}/build/" +} + +# check() { +# R_LIBS="build/" R CMD check --no-manual --as-cran "${_cranname}" +# } + +package() { + install -dm0755 "${pkgdir}/usr/lib/R/library" + cp -a --no-preserve=ownership "${srcdir}/build/${_cranname}" "${pkgdir}/usr/lib/R/library" + + if [[ -f "${_cranname}/LICENSE" ]]; then + install -Dm0644 "${_cranname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + fi +} |