diff options
author | Sukanka | 2022-06-06 11:23:42 +0800 |
---|---|---|
committer | Sukanka | 2022-06-06 11:23:42 +0800 |
commit | bf4eef8204d1d607d48424950d15629060f4ee56 (patch) | |
tree | 18132cbfead0d85afd2ed1c59f39b3848b9f2e4d | |
download | aur-bf4eef8204d1d607d48424950d15629060f4ee56.tar.gz |
add r-gmm
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..351554bf91b1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = r-gmm + pkgdesc = Generalized Method of Moments and Generalized Empirical Likelihood + pkgver = 1.6.6 + pkgrel = 4 + url = https://cran.r-project.org/package=gmm + arch = x86_64 + license = GPL + makedepends = gcc-fortran + depends = r + depends = r-sandwich + optdepends = r-car + optdepends = r-knitr + optdepends = r-mass + optdepends = r-mvtnorm + optdepends = r-stabledist + optdepends = r-timedate + optdepends = r-timeseries + source = https://cran.r-project.org/src/contrib/gmm_1.6-6.tar.gz + sha256sums = b1b321ad1b4a4a14a2825a2c3eb939ce2f2bcef995247a1d638eca250e59739b + +pkgname = r-gmm diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dd21de9d0020 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net> + +_pkgname=gmm +_pkgver=1.6-6 +pkgname=r-${_pkgname,,} +pkgver=1.6.6 +pkgrel=4 +pkgdesc='Generalized Method of Moments and Generalized Empirical Likelihood' +arch=('x86_64') +url="https://cran.r-project.org/package=${_pkgname}" +license=('GPL') +depends=( + r + r-sandwich +) +optdepends=( + r-car + r-knitr + r-mass + r-mvtnorm + r-stabledist + r-timedate + r-timeseries +) +makedepends=( + gcc-fortran +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +sha256sums=('b1b321ad1b4a4a14a2825a2c3eb939ce2f2bcef995247a1d638eca250e59739b') + +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: |