diff options
author | Sukanka | 2022-06-06 21:38:25 +0800 |
---|---|---|
committer | Sukanka | 2022-06-06 21:38:25 +0800 |
commit | 20a3abfbf4df180fe792276038b4b7d594d81bba (patch) | |
tree | 52238a2c869476b530add032bd9c9fe19b6cd9b7 | |
download | aur-20a3abfbf4df180fe792276038b4b7d594d81bba.tar.gz |
add r-rstanarm
-rw-r--r-- | .SRCINFO | 39 | ||||
-rw-r--r-- | PKGBUILD | 58 |
2 files changed, 97 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a8dbbb379a30 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,39 @@ +pkgbase = r-rstanarm + pkgdesc = Bayesian Applied Regression Modeling via Stan + pkgver = 2.21.3 + pkgrel = 1 + url = https://cran.r-project.org/package=rstanarm + arch = x86_64 + license = GPL + makedepends = make + depends = r + depends = r-bayesplot + depends = r-bh + depends = r-ggplot2 + depends = r-lme4 + depends = r-loo + depends = r-rcpp + depends = r-rcppeigen + depends = r-rcppparallel + depends = r-rstan + depends = r-rstantools + depends = r-shinystan + depends = r-stanheaders + depends = pandoc + optdepends = r-betareg + optdepends = r-biglm + optdepends = r-data.table + optdepends = r-digest + optdepends = r-gridextra + optdepends = r-hsaur3 + optdepends = r-knitr + optdepends = r-mass + optdepends = r-mgcv + optdepends = r-rmarkdown + optdepends = r-roxygen2 + optdepends = r-stanheaders + optdepends = r-testthat + source = https://cran.r-project.org/src/contrib/rstanarm_2.21.3.tar.gz + sha256sums = e9f2d3761b8e4f14a6690beb633b08633cba7269ac8b969aedaa12844d1a32a7 + +pkgname = r-rstanarm diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..46fe828f1e3a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,58 @@ +# system requirements: GNU make, pandoc (>= 1.12.3), pandoc-citeproc +# Maintainer: sukanka <su975853527@gmail.com> + +_pkgname=rstanarm +_pkgver=2.21.3 +pkgname=r-${_pkgname,,} +pkgver=${_pkgver//[:-]/.} +pkgrel=1 +pkgdesc='Bayesian Applied Regression Modeling via Stan' +arch=('x86_64') +url="https://cran.r-project.org/package=${_pkgname}" +license=('GPL') +depends=( + r + r-bayesplot + r-bh + r-ggplot2 + r-lme4 + r-loo + r-rcpp + r-rcppeigen + r-rcppparallel + r-rstan + r-rstantools + r-shinystan + r-stanheaders + pandoc +) +optdepends=( + r-betareg + r-biglm + r-data.table + r-digest + r-gridextra + r-hsaur3 + r-knitr + r-mass + r-mgcv + r-rmarkdown + r-roxygen2 + r-stanheaders + r-testthat +) +makedepends=('make') +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +sha256sums=('e9f2d3761b8e4f14a6690beb633b08633cba7269ac8b969aedaa12844d1a32a7') + +build() { + # restrict the usage of memory and cpu, 1 threads usually consumes 2 GiB memory. + export MAKE="make -j5" + R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}" +} + +package() { + install -dm0755 "${pkgdir}/usr/lib/R/library" + cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library" +} +# vim:set ts=2 sw=2 et: |