summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af187e0a58b0f744b45cca9ab5770c42772cfae8 (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
28
29
30
31
32
33
34
_cranname=metadynminer
pkgname=r-${_cranname,,}-git
pkgver=r427.e223edf
pkgrel=1
pkgdesc="Tools to Read, Analyze and Visualize Metadynamics HILLS Files from 'Plumed' (git version)"
arch=(i686 x86_64)
url="https://cran.r-project.org/package=${_cranname}"
license=(GPL3)
depends=('r>=3.3.0' r-rcpp)
makedepends=('gcc>=4.3' git)
optdepends=(r-testthat)
conflicts=("r-${_cranname,,}")
provides=("r-${_cranname,,}")
source=("${_cranname}_src::git+https://github.com/spiwokv/${_cranname}.git")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_cranname}_src"

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}"

  R CMD INSTALL "${_cranname}_src" -l ${srcdir}
}

package() {
  cd "${srcdir}"

  install -dm0755 "${pkgdir}/usr/lib/R/library"
  cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library"
}