diff options
author | Viktor Drobot | 2020-03-06 16:21:12 +0300 |
---|---|---|
committer | Viktor Drobot | 2020-03-06 16:21:12 +0300 |
commit | e6a195bd49fa418fc4f95d68168218bc47bcb9af (patch) | |
tree | 5e2af6f84948de99c270d2209951618e5203ab79 /PKGBUILD | |
download | aur-e6a195bd49fa418fc4f95d68168218bc47bcb9af.tar.gz |
Initial release
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..aa191e18df3e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com + +_cranname=prettyunits +_cranver=1.1.1 +pkgname=r-${_cranname,,} +pkgver=${_cranver//[:-]/.} +pkgrel=1 +pkgdesc="Pretty, Human Readable Formatting of Quantities" +arch=(any) +url="https://cran.r-project.org/package=${_cranname}" +license=(MIT) +depends=(r) +optdepends=(r-codetools r-covr r-testthat) +source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") +md5sums=('0585a928696b8b7c259d2aaf8125762f') + +build() { + cd "${srcdir}" + + R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l ${srcdir} +} + +package() { + cd "${srcdir}" + + install -dm0755 "${pkgdir}/usr/lib/R/library" + cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library" +} |