summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3f203e0352cf8f078b3ff6982673d2801f15ab10 (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
# Contributor: Ward Segers <w@rdsegers.be>
# Contributor: Alex Branham <branham@utexas.edu>
_cranname=lintr
_cranver=1.0.2
_pkgtar=${_cranname}_${_cranver}.tar.gz
pkgname=r-lintr
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="A Linter for R Code"
arch=('any')
url="https://cran.r-project.org/package=${_cranname}"
license=('MIT')
depends=('r' 'r-rex' 'r-crayon' 'r-stringdist' 'r-testthat' 'r-digest' 'r-igraph' 'r-rstudioapi>=0.2' 'r-httr' 'r-jsonlite' 'r-knitr')

optdepends=('libxml2' 'glpk' 'r-rmarkdown' 'r-mockery')

source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
md5sums=('dbbca34d51580857bd22f6b0b54cc9ee')

build(){
    R CMD INSTALL ${_pkgtar} -l $srcdir
}
package() {
    install -d "$pkgdir/usr/lib/R/library"
    cp -r "$srcdir/$_cranname" "$pkgdir/usr/lib/R/library"
}