~dricottone/pkgbuilds

ref: 4dbc956ef70955932fc8b360db4720a8ea61f310 pkgbuilds/r-dbplyr/PKGBUILD -rw-r--r-- 1.2 KiB
4dbc956eDominic Ricottone Added r-rvest 11 months ago
                                                                                
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
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Matt Frichtl <frichtlm@gmail.com>
# Contributor: Alex Branham <branham@utexas.edu>

_cranname=dbplyr
_cranver=2.4.0
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="A 'dplyr' Back End for Databases"
arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
license=(MIT)
depends=('r>=3.1' 'r-blob>=1.2.0' 'r-cli>=3.4.1' 'r-dbi>=1.0.0' 'r-dplyr>=1.1.0' 'r-glue>=1.2.0' 'r-lifecycle>=1.0.3' r-magrittr 'r-pillar>=1.5.0' 'r-purrr>=1.0.1' 'r-r6>=2.2.2' 'r-rlang>=1.0.6' 'r-tibble>=1.4.2' 'r-tidyr>=1.3.0' 'r-tidyselect>=1.2.0' 'r-vctrs>=0.5.0' r-withr r-methods r-utils)
optdepends=(r-bit64 r-covr r-knitr r-lahman r-nycflights13 r-odbc r-rmariadb r-rmarkdown r-rpostgres r-rpostgresql r-rsqlite r-testthat)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('9154f35771fa818456c6c6ec566699f2e1e7569aaa48209de80b44274240f1e7')

build() {
  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"
}