summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Drobot2020-03-09 00:03:19 +0300
committerViktor Drobot2020-03-09 00:03:19 +0300
commit4c9e6646b676251c670da977d77b0d1d7b9d697f (patch)
tree3ae93019a08c4e5d622d253c6d1b1114aeb9704b
parent4d387da4a4b099d848c798201bddb74a23c7a22c (diff)
downloadaur-4c9e6646b676251c670da977d77b0d1d7b9d697f.tar.gz
Fixed PKGBUILD
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD29
2 files changed, 18 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 25c9c0aef69..514d1d1f081 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,10 @@
pkgbase = r-dbplyr
- pkgdesc = A dplyr Back End for Databases
+ pkgdesc = A 'dplyr' Back End for Databases
pkgver = 1.4.2
pkgrel = 1
url = https://cran.r-project.org/package=dbplyr
arch = any
license = MIT
- license = custom
depends = r>=3.1
depends = r-assertthat>=0.2.0
depends = r-dbi>=1.0.0
diff --git a/PKGBUILD b/PKGBUILD
index 7113b1da9b0..0c6d092bb56 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +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=dbplyr
_cranver=1.4.2
-pkgname=r-dbplyr
-pkgver=${_cranver}
+pkgname=r-${_cranname,,}
+pkgver=${_cranver//[:-]/.}
pkgrel=1
-pkgdesc="A dplyr Back End for Databases"
-arch=('any')
+pkgdesc="A 'dplyr' Back End for Databases"
+arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
-license=('MIT' 'custom')
+license=(MIT)
depends=('r>=3.1' 'r-assertthat>=0.2.0' 'r-dbi>=1.0.0' 'r-dplyr>=0.8.0' 'r-glue>=1.2.0' 'r-purrr>=0.2.5' 'r-r6>=2.2.2' 'r-rlang>=0.2.0' 'r-tibble>=1.4.2' 'r-tidyselect>=0.2.4')
-optdepends=('r-bit64' 'r-covr' 'r-knitr' 'r-lahman' 'r-nycflights13' 'r-rmariadb' 'r-rmarkdown' 'r-rmysql' 'r-rpostgresql' 'r-rsqlite' 'r-testthat' 'r-withr')
+optdepends=(r-bit64 r-covr r-knitr r-lahman r-nycflights13 r-rmariadb r-rmarkdown r-rmysql r-rpostgresql r-rsqlite r-testthat r-withr)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
md5sums=('622481e9289eb6d588e8c530a0e1fc84')
-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() {
- 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"
}