summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ece8a69c21d9c8c84f692fef1a31379d47745669 (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
35
36
37
38
39
_pkgname=bff
_pkgver=4.3.0
pkgname=r-${_pkgname,,}
pkgver=4.3.0
pkgrel=3
pkgdesc='Bayes Factor Functions'
arch=('any')
url="https://github.com/rshudde/${_pkgname}"
license=('GPL2')
depends=(
  r
  r-grdevices
  r-ggplot2
  r-matrix
  r-gsl
  r-stats
  r-rlang
)
optdepends=(
  r-testthat
  r-knitr
  r-rmarkdown
  r-bsda
  r-vdiffr
)
makedepends=('git')
source=("git+https://github.com/rshudde/${_pkgname}.git")
sha256sums=('SKIP')

build() {
  mkdir -p ${srcdir}/usr/lib/R/library
  R -e "install.packages('${srcdir}/${_pkgname}',\
     type='source', repos=NULL,lib='${srcdir}/usr/lib/R/library', INSTALL_opts='--no-multiarch --no-docs --no-test-load')"
}

package() {

  cp -a --no-preserve=ownership "${srcdir}/usr" "${pkgdir}"
}