summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Branham2018-05-30 09:13:42 -0500
committerAlex Branham2018-05-30 09:13:42 -0500
commit613747d1e3aa8b74afa024bb81d43f38382bee84 (patch)
tree17aabdcbb418b4c78aeaeaffef3a3e180e1297d2
downloadaur-613747d1e3aa8b74afa024bb81d43f38382bee84.tar.gz
Initial commit
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD26
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e90de3550f8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = r-dbi
+ pkgdesc = R Database Interface
+ pkgver = 1.0.0
+ pkgrel = 1
+ url = https://cran.r-project.org/web/packages/DBI/index.html
+ arch = any
+ license = LGPL
+ depends = r
+ optdepends = r-blob
+ optdepends = r-covr
+ optdepends = r-cran-hms
+ optdepends = r-knitr
+ optdepends = r-magrittr
+ optdepends = r-rprojroot
+ optdepends = r-rmarkdown
+ optdepends = r-testthat
+ optdepends = r-xml2
+ source = https://cran.r-project.org/src/contrib/DBI_1.0.0.tar.gz
+ md5sums = 72206e6de9f1a3e783f74446f31bb54c
+
+pkgname = r-dbi
+
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"
+}
+