~dricottone/pkgbuilds

ref: 95c39f1abaa8a5b0b8a56799c428d130cebe2107 pkgbuilds/r-modelr/PKGBUILD -rw-r--r-- 908 bytes
95c39f1aDominic Ricottone Added r-prettyunits 1 year, 28 days 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
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Pranav K Anupam <pranavanupam@yahoo.com>

_cranname=modelr
_cranver=0.1.11
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Modelling Functions that Work with the Pipe"
arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
license=(GPL3)
depends=('r>=3.2' r-broom r-magrittr 'r-purrr>=0.2.2' 'r-rlang>=1.0.6' r-tibble 'r-tidyr>=0.8.0' r-tidyselect r-vctrs)
optdepends=(r-covr r-ggplot2 r-testthat r-compiler)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('94ebd506e9ccf3bf25318be6a182f8f89c3669a77b41864a0b9dbcc1d4337bd3')

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