~dricottone/pkgbuilds

ref: 05eab451ab70e0d097386bfb393e8ac3fb6bfe14 pkgbuilds/r-stringr/PKGBUILD -rw-r--r-- 953 bytes
05eab451Dominic Ricottone Added missing LICENSE 1 year, 27 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: Grey Christoforo <first name at last name dot net>

_cranname=stringr
_cranver=1.5.1
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=2
pkgdesc="Simple, Consistent Wrappers for Common String Operations"
arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
license=(MIT)
depends=('r>=3.3' r-cli 'r-glue>=1.6.1' r-magrittr 'r-rlang>=1.0.0' 'r-stringi>=1.5.3' r-vctrs 'r-lifecycle>=1.0.3')
optdepends=(r-covr r-htmltools r-htmlwidgets r-knitr r-rmarkdown r-testthat)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('a4adec51bb3f04214b1d8ef40d3a58949f21b1497cbeaf2ba552e0891eef45de')

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