diff options
author | Sukanka | 2022-06-06 18:43:12 +0800 |
---|---|---|
committer | Sukanka | 2022-06-06 18:43:12 +0800 |
commit | 10779336b9d7f9974160572c2bfbea298c5edb8c (patch) | |
tree | 391b484e282842f14a4903aeba6ba2254398b967 | |
download | aur-10779336b9d7f9974160572c2bfbea298c5edb8c.tar.gz |
add r-poibin
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0e62dbeb2bd3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = r-poibin + pkgdesc = The Poisson Binomial Distribution + pkgver = 1.5 + pkgrel = 4 + url = https://cran.r-project.org/package=poibin + arch = x86_64 + license = GPL + depends = r + source = https://cran.r-project.org/src/contrib/poibin_1.5.tar.gz + sha256sums = 3b395e001db8f4b0a56f3645c5eef645978418baa6f8f6a7d58d9acff9f6b9eb + +pkgname = r-poibin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e4166f58ed67 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net> + +_pkgname=poibin +_pkgver=1.5 +pkgname=r-${_pkgname,,} +pkgver=1.5 +pkgrel=4 +pkgdesc='The Poisson Binomial Distribution' +arch=('x86_64') +url="https://cran.r-project.org/package=${_pkgname}" +license=('GPL') +depends=( + r +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +sha256sums=('3b395e001db8f4b0a56f3645c5eef645978418baa6f8f6a7d58d9acff9f6b9eb') + +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: |