summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSukanka2022-06-06 06:39:40 +0800
committerSukanka2022-06-06 06:39:40 +0800
commit668388aa0700a676df632024c02327f57b864786 (patch)
tree99686fca2a1292fce5d24f6f0743b34901d3f77c
downloadaur-668388aa0700a676df632024c02327f57b864786.tar.gz
add r-cmdfun
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD40
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e4383391797
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = r-cmdfun
+ pkgdesc = Framework for Building Interfaces to Shell Commands
+ pkgver = 1.0.2
+ pkgrel = 3
+ url = https://cran.r-project.org/package=cmdfun
+ arch = any
+ license = MIT
+ depends = r
+ depends = r-magrittr
+ depends = r-purrr
+ depends = r-r.utils
+ depends = r-rlang
+ depends = r-testthat
+ depends = r-usethis
+ optdepends = r-cli
+ optdepends = r-covr
+ optdepends = r-knitr
+ optdepends = r-processx
+ optdepends = r-rmarkdown
+ source = https://cran.r-project.org/src/contrib/cmdfun_1.0.2.tar.gz
+ sha256sums = 7288d35777260156bf67ea0c036af12e3130b51378f80a9fc5955111e1c16cdd
+
+pkgname = r-cmdfun
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..676b05ed061
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
+
+_pkgname=cmdfun
+_pkgver=1.0.2
+pkgname=r-${_pkgname,,}
+pkgver=1.0.2
+pkgrel=3
+pkgdesc='Framework for Building Interfaces to Shell Commands'
+arch=('any')
+url="https://cran.r-project.org/package=${_pkgname}"
+license=('MIT')
+depends=(
+ r
+ r-magrittr
+ r-purrr
+ r-r.utils
+ r-rlang
+ r-testthat
+ r-usethis
+)
+optdepends=(
+ r-cli
+ r-covr
+ r-knitr
+ r-processx
+ r-rmarkdown
+)
+source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
+sha256sums=('7288d35777260156bf67ea0c036af12e3130b51378f80a9fc5955111e1c16cdd')
+
+build() {
+ R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
+}
+
+package() {
+ 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: