summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorViktor Drobot2020-03-09 00:00:17 +0300
committerViktor Drobot2020-03-09 00:00:17 +0300
commit9d4f887b2a6b319f1c479fb0a4b2b4416557a85d (patch)
tree2d5681847e5f2785d2469cfd66c12bc9523652c2 /PKGBUILD
parent8b1aefbfea3fcce2377d4b6d0cf3b138a69ef2d2 (diff)
downloadaur-9d4f887b2a6b319f1c479fb0a4b2b4416557a85d.tar.gz
Fixed PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 16 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6e010d63916..62a59bffc33 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,30 @@
-# Maintainer: Matt Frichtl <frichtlm@gmail.com>
+# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
+# Contributor: Matt Frichtl <frichtlm@gmail.com>
# Contributor: Alex Branham <branham@utexas.edu>
+
_cranname=DBI
_cranver=1.1.0
-pkgname=r-dbi
-pkgver=${_cranver}
+pkgname=r-${_cranname,,}
+pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="R Database Interface"
-arch=('any')
+arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
-license=('LGPL-2.1' 'LGPL-3')
+license=(LGPL2.1 LGPL3)
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')
+optdepends=(r-blob r-covr r-hms r-knitr r-magrittr r-rmarkdown r-rprojroot r-rsqlite r-testthat r-xml2)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
md5sums=('fa91ce2c8d7bf62a75f858d2501d6d3a')
-build(){
- cd "$srcdir"
- R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "$srcdir"
+build() {
+ cd "${srcdir}"
+
+ R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l ${srcdir}
}
package() {
- cd "$srcdir"
- install -dm0755 "$pkgdir/usr/lib/R/library"
- cp -a --no-preserve=ownership "$_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"
+}