diff options
author | Viktor Drobot | 2020-03-10 03:12:15 +0300 |
---|---|---|
committer | Viktor Drobot | 2020-03-10 03:12:15 +0300 |
commit | 83b958d2431825fa9bf1e16d2306f6c0bb8bc750 (patch) | |
tree | be2dd88bddec151e11936fb98b550f13785abdf0 /PKGBUILD | |
parent | 084dfd52160c99efea43a165e43669d167e99ee1 (diff) | |
download | aur-83b958d2431825fa9bf1e16d2306f6c0bb8bc750.tar.gz |
Fixed PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 21 insertions, 14 deletions
@@ -1,23 +1,30 @@ +# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com # Contributor: Kibouo <csonka.mihaly@hotmail.com> + _cranname=sys -_cranver=3.2 -_pkgtar=${_cranname}_${_cranver}.tar.gz -pkgname=r-sys +_cranver=3.3 +pkgname=r-${_cranname,,} pkgver=${_cranver//[:-]/.} pkgrel=1 -pkgdesc='Drop-in replacements for the base system2() function with fine control and consistent behavior across platforms.' -arch=('x86_64') +pkgdesc="Powerful and Reliable Tools for Running System Commands in R" +arch=(i686 x86_64) url="https://cran.r-project.org/package=${_cranname}" -license=('MIT') -depends=('r' 'r-unix' 'r-spelling' 'r-testthat') -source=("https://cran.r-project.org/src/contrib/${_pkgtar}") -md5sums=('190fca32f95385aef9869793c4f6c5c3') +license=(MIT) +depends=(r) +makedepends=(gcc) +optdepends=(r-unix r-spelling r-testthat) +source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") +md5sums=('40e3410254657d487cd9f19391fb6118') + +build() { + cd "${srcdir}" -build(){ - R CMD INSTALL ${_pkgtar} -l $srcdir + R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l ${srcdir} } + package() { - install -d "$pkgdir/usr/lib/R/library" - cp -r "$srcdir/$_cranname" "$pkgdir/usr/lib/R/library" + cd "${srcdir}" + + install -dm0755 "${pkgdir}/usr/lib/R/library" + cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library" } - |