~dricottone/pkgbuilds

ref: 566594ec0cb35e09e8ed80a37f1bd8f308116860 pkgbuilds/r-conflicted/PKGBUILD -rw-r--r-- 828 bytes
566594ecDominic Ricottone Added r-jquerylib 1 year, 26 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
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com

_cranname=conflicted
_cranver=1.2.0
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=2
pkgdesc="An Alternative Conflict Resolution Strategy"
arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
license=(MIT)
depends=('r>=3.2' 'r-cli>=3.4.0' r-memoise 'r-rlang>=1.0.0')
optdepends=(r-callr r-covr r-dplyr r-pkgload r-testthat r-withr r-matrix r-methods)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('c99b86bb52da3e7d1f4d96d70c77304d0434db5bd906edd8d743e89ac9223088')

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