summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 230ed57f500e2c82b8873873d6f08829f1a1aefe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Matt Frichtl <frichtlm@gmail.com>
# Contributor: Alex Branham <branham@utexas.edu>
_cranname=DBI
_cranver=1.0.0
pkgname=r-dbi
pkgver=${_cranver}
pkgrel=1
pkgdesc="R Database Interface"
arch=('any')
url="https://cran.r-project.org/package=${_cranname}"
license=('LGPL')
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')
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
md5sums=('72206e6de9f1a3e783f74446f31bb54c')

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"
}