diff options
author | Sukanka | 2022-06-06 19:38:28 +0800 |
---|---|---|
committer | Sukanka | 2022-06-06 19:38:28 +0800 |
commit | ba344281e23af22620dba915d432673009301411 (patch) | |
tree | 3fa1056343a0581e7f518360164e8f9e183a81d6 /PKGBUILD | |
download | aur-ba344281e23af22620dba915d432673009301411.tar.gz |
add r-r2winbugs
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..42e3f6022bc2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# system requirements: OpenBugs for functions bugs() and openbugs() orWinBUGS 1.4 for function bugs() +# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net> + +_pkgname=R2WinBUGS +_pkgver=2.1-21 +pkgname=r-${_pkgname,,} +pkgver=2.1.21 +pkgrel=4 +pkgdesc="Running 'WinBUGS' and 'OpenBUGS' from 'R' / 'S-PLUS'" +arch=('any') +url="https://cran.r-project.org/package=${_pkgname}" +license=('GPL') +depends=( + r + r-coda +) +optdepends=( + r-brugs +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +sha256sums=('fa86cb5140f5dfce29f9517b94d6d08c316ddcffa4aa3085945b84d34910134d') + +build() { + 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: |