summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2b632d7cd99
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: trougnouf (Benoit Brummer) <trougnouf at gmail dot com>
+
+_name='pycma'
+pkgname="python-${_name}-git"
+pkgver=r249.038bcb3
+pkgrel=1
+pkgdesc="Python implementation of CMA-ES"
+provides=(python-${_name})
+url="https://github.com/CMA-ES/${_name}"
+depends=('python-numpy')
+makedepends=('python-setuptools')
+license=('MIT')
+arch=('x86_64')
+
+pkgver() {
+ cd "${srcdir}/$_name"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+source=("git+${url}.git")
+
+sha256sums=('SKIP')
+
+build() {
+ cd "${srcdir}/${_name}"
+ python setup.py build
+}
+
+package() {
+ cd "${srcdir}/${_name}"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+}
+
+