summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Drobot2020-03-09 00:00:17 +0300
committerViktor Drobot2020-03-09 00:00:17 +0300
commit9d4f887b2a6b319f1c479fb0a4b2b4416557a85d (patch)
tree2d5681847e5f2785d2469cfd66c12bc9523652c2
parent8b1aefbfea3fcce2377d4b6d0cf3b138a69ef2d2 (diff)
downloadaur-9d4f887b2a6b319f1c479fb0a4b2b4416557a85d.tar.gz
Fixed PKGBUILD
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD29
2 files changed, 19 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 077b2fd890e..bee1f9a88bd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,16 +4,16 @@ pkgbase = r-dbi
pkgrel = 1
url = https://cran.r-project.org/package=DBI
arch = any
- license = LGPL-2.1
- license = LGPL-3
+ license = LGPL2.1
+ license = LGPL3
depends = r>=3.0.0
optdepends = r-blob
optdepends = r-covr
optdepends = r-hms
optdepends = r-knitr
optdepends = r-magrittr
- optdepends = r-rprojroot
optdepends = r-rmarkdown
+ optdepends = r-rprojroot
optdepends = r-rsqlite
optdepends = r-testthat
optdepends = r-xml2
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"
+}