diff options
author | Sukanka | 2022-06-07 09:27:58 +0800 |
---|---|---|
committer | Sukanka | 2022-06-07 09:27:58 +0800 |
commit | 86e9f06470c6289da2203c755b0d0569f71a2eb9 (patch) | |
tree | 9fa590ed7fa8511bc1a269ada4990761c55aefd8 | |
download | aur-86e9f06470c6289da2203c755b0d0569f71a2eb9.tar.gz |
add r-tmvtnorm
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..26646e24f72a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = r-tmvtnorm + pkgdesc = Truncated Multivariate Normal and Student t Distribution + pkgver = 1.5 + pkgrel = 3 + url = https://cran.r-project.org/package=tmvtnorm + arch = x86_64 + license = GPL + makedepends = gcc-fortran + depends = r + depends = r-gmm + depends = r-mvtnorm + optdepends = r-lattice + source = https://cran.r-project.org/src/contrib/tmvtnorm_1.5.tar.gz + sha256sums = 1c7a606bdce4319a6fdb4180fef499c293df3412d8583e296869521ece5460fe + +pkgname = r-tmvtnorm diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3dbd7cc2367f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net> + +_pkgname=tmvtnorm +_pkgver=1.5 +pkgname=r-${_pkgname,,} +pkgver=1.5 +pkgrel=3 +pkgdesc='Truncated Multivariate Normal and Student t Distribution' +arch=('x86_64') +url="https://cran.r-project.org/package=${_pkgname}" +license=('GPL') +depends=( + r + r-gmm + r-mvtnorm +) +optdepends=( + r-lattice +) +makedepends=( + gcc-fortran +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +sha256sums=('1c7a606bdce4319a6fdb4180fef499c293df3412d8583e296869521ece5460fe') + +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: |