summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f6eab946f715c3677208f59a8cdaf9d4e093f2f8 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Maintainer: sukanka <su975853527@gmail.com>

_pkgname=bssm
_pkgver=2.0.2
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=2
pkgdesc="Bayesian Inference of Non-Linear and Non-Gaussian State Space Models"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later')
depends=(
  blas
  lapack
  pandoc
  r-bayesplot
  r-checkmate
  r-coda
  r-diagis
  r-dplyr
  r-posterior
  r-rcpp
  r-rlang
  r-tidyr
)
makedepends=(
  r-ramcmc
  r-rcpparmadillo
  r-sitmo
)
optdepends=(
  r-covr
  r-ggplot2
  r-kfas
  r-knitr
  r-ramcmc
  r-rmarkdown
  r-sde
  r-sitmo
  r-testthat
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('a1235d8be6cfbf742b99a6340863e8c6')
b2sums=('287273fa35b10ec6554a599c8691b625b6ce9c11fcee9305cae5bd203441f55c6e57bf8257d9d8c31a933c61ceb6f6f5aebb901ab0943e585ca258ee5c59b4fd')

build() {
  mkdir build
  R CMD INSTALL -l build "$_pkgname"
}

package() {
  install -d "$pkgdir/usr/lib/R/library"
  cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
}