summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD25
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8e0dfd2ed11
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = python2-george
+ pkgdesc = Fast Gaussian Processes for regression
+ pkgver = 0.2.0
+ pkgrel = 1
+ url = http://dan.iel.fm/george
+ arch = any
+ license = MIT
+ makedepends = hodlr
+ depends = python2-scipy
+ source = https://github.com/dfm/george/archive/v0.2.0.tar.gz
+ md5sums = SKIP
+
+pkgname = python2-george
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9bf5371e485
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+
+pkgname=python2-george
+pkgver=0.2.0
+pkgrel=1
+pkgdesc="Fast Gaussian Processes for regression"
+url="http://dan.iel.fm/george"
+arch=(any)
+license=('MIT')
+depends=('python2-scipy')
+makedepends=('hodlr')
+source=("https://github.com/dfm/george/archive/v${pkgver}.tar.gz")
+md5sums=('SKIP')
+
+build() {
+ cd "${srcdir}/george-$pkgver"
+ sed -i '62i"/usr/include",' setup.py
+ sed -i "s|assemble_Matrix(diag, tol_, 's', seed)|assemble_Matrix(diag, tol_, 's')|g" include/solver.h
+ python2 setup.py build
+}
+
+package() {
+ cd "${srcdir}/george-$pkgver"
+ python2 setup.py install --root="${pkgdir}"
+}
+