summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorViktor Drobot2020-03-09 22:11:13 +0300
committerViktor Drobot2020-03-09 22:11:13 +0300
commit994b5465dc268bf85bd34bbd3c3c9015eea4689c (patch)
treed4e78f1aa08608bc9df50bd1c5a8ad134343e8af /PKGBUILD
parent523f8a1567945245b1a8d5844c92ae307b0eed46 (diff)
downloadaur-r-irlba.tar.gz
Fixed PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 18 insertions, 15 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b1ec61d461b..a8425e89de5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,30 @@
+# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Ward Segers <w@rdsegers.be>
# Contributor: Alex Branham <branham@utexas.edu>
+
_cranname=irlba
-_cranver=2.3.2
-_pkgtar=${_cranname}_${_cranver}.tar.gz
-pkgname=r-irlba
+_cranver=2.3.3
+pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Fast Truncated Singular Value Decomposition and Principal Components Analysis for Large Dense and Sparse Matrices"
-arch=('x86_64')
+arch=(i686 x86_64)
url="https://cran.r-project.org/package=${_cranname}"
-license=('GPL3')
-depends=('r' )
-
-optdepends=('r-pma')
+license=(GPL3)
+depends=(r)
+makedepends=(gcc)
+source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
+md5sums=('a057237111263ad6afafa1b1a63be0e7')
-source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
-md5sums=('f710502b70e97abb9bdf3dba961769ed')
+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"
+}