summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSukanka2022-06-06 11:17:39 +0800
committerSukanka2022-06-06 11:17:39 +0800
commitc3d7b1cbdf016f1d3b166f38a67c631191b0480f (patch)
tree639460d0a1a4ea1c63c3f81cdf101b437807d7bc
downloadaur-c3d7b1cbdf016f1d3b166f38a67c631191b0480f.tar.gz
add r-glasso
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD29
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..917a34bfc953
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = r-glasso
+ pkgdesc = Graphical Lasso: Estimation of Gaussian Graphical Models
+ pkgver = 1.11
+ pkgrel = 4
+ url = https://cran.r-project.org/package=glasso
+ arch = x86_64
+ license = GPL
+ makedepends = gcc-fortran
+ depends = r
+ source = https://cran.r-project.org/src/contrib/glasso_1.11.tar.gz
+ sha256sums = 4c37844b26f55985184a734e16b8fe880b192e3d2763614b0ab3f99b4530e30a
+
+pkgname = r-glasso
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..669333684563
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
+
+_pkgname=glasso
+_pkgver=1.11
+pkgname=r-${_pkgname,,}
+pkgver=1.11
+pkgrel=4
+pkgdesc='Graphical Lasso: Estimation of Gaussian Graphical Models'
+arch=('x86_64')
+url="https://cran.r-project.org/package=${_pkgname}"
+license=('GPL')
+depends=(
+ r
+)
+makedepends=(
+ gcc-fortran
+)
+source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
+sha256sums=('4c37844b26f55985184a734e16b8fe880b192e3d2763614b0ab3f99b4530e30a')
+
+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: