diff options
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7dbfc12eac94 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = r-getoptlong + pkgdesc = Parsing Command-Line Arguments and Simple Variable Interpolation + pkgver = 1.0.5 + pkgrel = 4 + url = https://cran.r-project.org/package=GetoptLong + arch = any + license = MIT + depends = r + depends = r-crayon + depends = r-globaloptions + depends = r-rjson + depends = perl + optdepends = r-knitr + optdepends = r-markdown + optdepends = r-rmarkdown + optdepends = r-testthat + source = https://cran.r-project.org/src/contrib/GetoptLong_1.0.5.tar.gz + sha256sums = 8c237986ed3dfb72d956ad865ef7768644eebf144675ad66140acfd1aca9d701 + +pkgname = r-getoptlong diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0039dd6ef37e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# system requirements: Perl, Getopt::Long +# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net> + +_pkgname=GetoptLong +_pkgver=1.0.5 +pkgname=r-${_pkgname,,} +pkgver=1.0.5 +pkgrel=4 +pkgdesc='Parsing Command-Line Arguments and Simple Variable Interpolation' +arch=('any') +url="https://cran.r-project.org/package=${_pkgname}" +license=('MIT') +depends=( + r + r-crayon + r-globaloptions + r-rjson + perl +) +optdepends=( + r-knitr + r-markdown + r-rmarkdown + r-testthat +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +sha256sums=('8c237986ed3dfb72d956ad865ef7768644eebf144675ad66140acfd1aca9d701') + +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: |