summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorViktor Drobot2020-03-10 03:16:22 +0300
committerViktor Drobot2020-03-10 03:16:22 +0300
commit3fa57c3dd4adf7e73836f59756414b34db16e58b (patch)
tree1e44ee6fa79a38233d2ae9b94056534417d8751b /PKGBUILD
parent1ab2dd77f76c3232564dead9cd1f21761b20750e (diff)
downloadaur-r-unix.tar.gz
Fixed PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 21 insertions, 15 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1f073bed624..b76d126fe5a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,24 +1,30 @@
+# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Kibouo <csonka.mihaly@hotmail.com>
+
_cranname=unix
-_cranver=1.5
-_pkgtar=${_cranname}_${_cranver}.tar.gz
-pkgname=r-unix
+_cranver=1.5.1
+pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
-pkgdesc=' to system utilities found in most Unix systems.'
-arch=('x86_64')
+pkgdesc="POSIX System Utilities"
+arch=(i686 x86_64)
url="https://cran.r-project.org/package=${_cranname}"
-license=('MIT')
-depends=('r')
-optdepends=('r-testthat')
-source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
-md5sums=('c2964321773cb7f98c0fb37cc6d169a6')
+license=(MIT)
+depends=(r)
+makedepends=(gcc)
+optdepends=(r-testthat)
+source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
+md5sums=('7ccf884c7176896883fbaffa5b1ecbc8')
+
+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"
}
-