summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44055a37787af9eff550b672db8768286dd6c64c (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
# Maintainer: Alex Branham <branham@utexas.edu>
_cranname=assertthat
_cranver=0.2.0
_pkgtar=${_cranname}_${_cranver}.tar.gz
pkgname=r-assertthat
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Easy Pre and Post Assertions"
arch=('any')
url="https://cran.r-project.org/web/packages/${_cranname}/index.html"
license=('GPL3')
depends=('r' )

optdepends=('r-testthat')

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

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