summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0723ef76adfca9fac6b629e7379162933991eebd (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
# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com

_cranname=xfun
_cranver=0.9
_pkgtar=${_cranname}_${_cranver}.tar.gz
pkgname=r-xfun
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc='Miscellaneous Functions by Yihui Xie'
arch=('any')
url='https://cran.r-project.org/package=xfun'
license=('MIT')
depends=('r' )
source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
md5sums=('a336fa5d53795d1757c5f7b8cb4a6d37')

build(){
    R CMD INSTALL xfun_"$_cranver".tar.gz -l "$srcdir"
}
package() {
    install -d "$pkgdir"/usr/lib/R/library
    cp -a --no-preserve=ownership xfun "$pkgdir"/usr/lib/R/library
}