diff options
author | Sukanka | 2022-06-06 18:58:43 +0800 |
---|---|---|
committer | Sukanka | 2022-06-06 18:58:43 +0800 |
commit | c17c1b2743fa4360d9ed0bdaef91455b04aa6ea6 (patch) | |
tree | f0bd3f7781f38eb9deb9c4d380968943e0997fa7 | |
download | aur-r-princurve.tar.gz |
add r-princurve
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4a310773d640 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = r-princurve + pkgdesc = Fit a Principal Curve in Arbitrary Dimension + pkgver = 2.1.6 + pkgrel = 4 + url = https://cran.r-project.org/package=princurve + arch = x86_64 + license = GPL + depends = r + depends = r-rcpp + optdepends = r-devtools + optdepends = r-testthat + source = https://cran.r-project.org/src/contrib/princurve_2.1.6.tar.gz + sha256sums = 0216332390eb27013b6ba62232782156dfc99ca640087fcaff53d2be9218f373 + +pkgname = r-princurve diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c34656ec874d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net> + +_pkgname=princurve +_pkgver=2.1.6 +pkgname=r-${_pkgname,,} +pkgver=2.1.6 +pkgrel=4 +pkgdesc='Fit a Principal Curve in Arbitrary Dimension' +arch=('x86_64') +url="https://cran.r-project.org/package=${_pkgname}" +license=('GPL') +depends=( + r + r-rcpp +) +optdepends=( + r-devtools + r-testthat +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +sha256sums=('0216332390eb27013b6ba62232782156dfc99ca640087fcaff53d2be9218f373') + +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: |