summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMatt Frichtl2019-11-27 16:38:18 -0500
committerMatt Frichtl2019-11-27 16:38:18 -0500
commit77079c4ce52017b0e0d746c9adf564891362e474 (patch)
treee7fe631102285552f3405c047154982395d5570c /PKGBUILD
parent1971e0700a941412da7b71278a995fa678d9594c (diff)
downloadaur-77079c4ce52017b0e0d746c9adf564891362e474.tar.gz
Changed maintainer. Re-submitted to AUR.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 11 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 828afc7d0f6..230ed57f500 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,27 @@
-# Maintainer: Alex Branham <branham@utexas.edu>
+# Maintainer: Matt Frichtl <frichtlm@gmail.com>
+# Contributor: Alex Branham <branham@utexas.edu>
_cranname=DBI
_cranver=1.0.0
-_pkgtar=${_cranname}_${_cranver}.tar.gz
pkgname=r-dbi
-pkgver=${_cranver//[:-]/.}
+pkgver=${_cranver}
pkgrel=1
pkgdesc="R Database Interface"
arch=('any')
url="https://cran.r-project.org/package=${_cranname}"
license=('LGPL')
-depends=('r' )
-
+depends=('r>=3.0.0')
optdepends=('r-blob' 'r-covr' 'r-hms' 'r-knitr' 'r-magrittr' 'r-rprojroot' 'r-rmarkdown' 'r-rsqlite' 'r-testthat' 'r-xml2')
-
-source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
+source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
md5sums=('72206e6de9f1a3e783f74446f31bb54c')
build(){
- R CMD INSTALL ${_pkgtar} -l $srcdir
+ cd "$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"
}