summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc627b3b3e065d62bcdc3cf0ece11cc6f6908380 (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
# Maintainer: Kibouo <csonka.mihaly@hotmail.com>
pkgname=r-rustinr
pkgver=r214.9996184
pkgrel=4
pkgdesc='Rust and R Integration.'
arch=('any')
url='https://github.com/rustr/rustinr'
license=('Apache License 2.0')
depends=('r' 'rustup')
optdepends=('r-testthat')
makedepends=('git' 'r-devtools')
provides=("${pkgname}")
conflicts=("${pkgname}")
source=("${pkgname}::git+https://github.com/rustr/rustinr.git")
md5sums=('SKIP')
pkgver() {
	cd "${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build(){
    R CMD build r-rustinr
    R CMD INSTALL rustinr_*.tar.gz -l $srcdir
}    
package() {
    install -d "$pkgdir/usr/lib/R/library"
    cp -r "$srcdir"/rustinr "$pkgdir/usr/lib/R/library"    
}