diff options
author | Sukanka | 2022-06-06 02:18:05 +0800 |
---|---|---|
committer | Sukanka | 2022-06-06 02:18:05 +0800 |
commit | ef7f3eccf2569e7b5cc6e930e394eda8753735e1 (patch) | |
tree | b03af36dd34f8cc51c738d2b65ab185d15812cd3 | |
download | aur-ef7f3eccf2569e7b5cc6e930e394eda8753735e1.tar.gz |
add r-baseline
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..670f3eda6bcd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = r-baseline + pkgdesc = Baseline Correction of Spectra + pkgver = 1.3.1 + pkgrel = 4 + url = https://cran.r-project.org/package=baseline + arch = any + license = GPL + depends = r + depends = r-limsolve + depends = r-sparsem + optdepends = r-gwidgets2 + optdepends = r-gwidgets2tcltk + optdepends = r-idpmisc + optdepends = r-lattice + optdepends = r-mass + optdepends = r-pls + source = https://cran.r-project.org/src/contrib/baseline_1.3-1.tar.gz + sha256sums = badea963a868e014c71a9e64185af03f5d464431218a92c16a6665083ebaf5ea + +pkgname = r-baseline diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0c5e87910215 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net> + +_pkgname=baseline +_pkgver=1.3-1 +pkgname=r-${_pkgname,,} +pkgver=1.3.1 +pkgrel=4 +pkgdesc='Baseline Correction of Spectra' +arch=('any') +url="https://cran.r-project.org/package=${_pkgname}" +license=('GPL') +depends=( + r + r-limsolve + r-sparsem +) +optdepends=( + r-gwidgets2 + r-gwidgets2tcltk + r-idpmisc + r-lattice + r-mass + r-pls +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +sha256sums=('badea963a868e014c71a9e64185af03f5d464431218a92c16a6665083ebaf5ea') + +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: |