diff options
author | Sukanka | 2022-06-06 09:15:50 +0800 |
---|---|---|
committer | Sukanka | 2022-06-06 09:15:50 +0800 |
commit | 424c15e90d779f3b66448686e1ed7d1ec4cfe335 (patch) | |
tree | 38b7d17d410eafd78b21ca5e9109091fb5d7fb33 | |
download | aur-424c15e90d779f3b66448686e1ed7d1ec4cfe335.tar.gz |
add r-etrunct
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..50dd11c5c97b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = r-etrunct + pkgdesc = Computes Moments of Univariate Truncated t Distribution + pkgver = 0.1 + pkgrel = 4 + url = https://cran.r-project.org/package=etrunct + arch = any + license = MIT + depends = r + optdepends = r-testthat + source = https://cran.r-project.org/src/contrib/etrunct_0.1.tar.gz + sha256sums = 19b36c739e382be2f19bdbe4107337935d52a1ab8eb301326612318afdfbca2b + +pkgname = r-etrunct diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fa5a14006289 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net> + +_pkgname=etrunct +_pkgver=0.1 +pkgname=r-${_pkgname,,} +pkgver=0.1 +pkgrel=4 +pkgdesc='Computes Moments of Univariate Truncated t Distribution' +arch=('any') +url="https://cran.r-project.org/package=${_pkgname}" +license=('MIT') +depends=( + r +) +optdepends=( + r-testthat +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +sha256sums=('19b36c739e382be2f19bdbe4107337935d52a1ab8eb301326612318afdfbca2b') + +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" + install -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" +} +# vim:set ts=2 sw=2 et: |