summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2a70811d760c8900f3b1bd03a3ecc85bfad23720 (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=inline
_cranver=0.3.15
_pkgtar=${_cranname}_${_cranver}.tar.gz
pkgname=r-inline
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Dynamically define R functions & S4 methods with inlined C, C++ or Fortran code"
arch=('any')
url="https://cran.r-project.org/web/packages/${_cranname}/index.html"
license=('LGPL')
depends=('r' 'gcc-fortran' )



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

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