summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD21
2 files changed, 12 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c92ca322e3d..2812c681fc4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,7 +5,7 @@ pkgbase = r-dbi
url = https://cran.r-project.org/package=DBI
arch = any
license = LGPL
- depends = r
+ depends = r>=3.0.0
optdepends = r-blob
optdepends = r-covr
optdepends = r-hms
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"
}