summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAlex Branham2018-05-30 09:13:42 -0500
committerAlex Branham2018-05-30 09:13:42 -0500
commit613747d1e3aa8b74afa024bb81d43f38382bee84 (patch)
tree17aabdcbb418b4c78aeaeaffef3a3e180e1297d2 /PKGBUILD
downloadaur-613747d1e3aa8b74afa024bb81d43f38382bee84.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6768a1a3dfd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Alex Branham <branham@utexas.edu>
+_cranname=DBI
+_cranver=1.0.0
+_pkgtar=${_cranname}_${_cranver}.tar.gz
+pkgname=r-dbi
+pkgver=${_cranver//[:-]/.}
+pkgrel=1
+pkgdesc="R Database Interface"
+arch=('any')
+url="https://cran.r-project.org/web/packages/${_cranname}/index.html"
+license=('LGPL')
+depends=('r' )
+
+optdepends=('r-blob' 'r-covr' 'r-cran-hms' 'r-knitr' 'r-magrittr' 'r-rprojroot' 'r-rmarkdown' 'r-testthat' 'r-xml2')
+
+source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
+md5sums=('72206e6de9f1a3e783f74446f31bb54c')
+
+build(){
+ R CMD INSTALL ${_pkgtar} -l $srcdir
+}
+package() {
+ install -d "$pkgdir/usr/lib/R/library"
+ cp -r "$srcdir/$_cranname" "$pkgdir/usr/lib/R/library"
+}
+