diff options
author | Sukanka | 2022-06-06 06:08:15 +0800 |
---|---|---|
committer | Sukanka | 2022-06-06 06:08:15 +0800 |
commit | c49d5378f30f3a4281a06ff1eb350ebfab0408f7 (patch) | |
tree | a1d092a57a6cba6118c8d49e16ca7d902b495e56 | |
download | aur-c49d5378f30f3a4281a06ff1eb350ebfab0408f7.tar.gz |
add r-changepoint
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0b7067dca80a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = r-changepoint + pkgdesc = Methods for Changepoint Detection + pkgver = 2.2.3 + pkgrel = 3 + url = https://cran.r-project.org/package=changepoint + arch = x86_64 + license = GPL + depends = r + depends = r-zoo + optdepends = r-testthat + source = https://cran.r-project.org/src/contrib/changepoint_2.2.3.tar.gz + sha256sums = 9255f16583a5296a8af02d2a50925a0888b74eae57489d0a28763f3cd3efedc2 + +pkgname = r-changepoint diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5b9d2b2f4a2e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net> + +_pkgname=changepoint +_pkgver=2.2.3 +pkgname=r-${_pkgname,,} +pkgver=2.2.3 +pkgrel=3 +pkgdesc='Methods for Changepoint Detection' +arch=('x86_64') +url="https://cran.r-project.org/package=${_pkgname}" +license=('GPL') +depends=( + r + r-zoo +) +optdepends=( + r-testthat +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +sha256sums=('9255f16583a5296a8af02d2a50925a0888b74eae57489d0a28763f3cd3efedc2') + +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: |