summaryrefslogtreecommitdiff
path: root/community/python2-numexpr/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-09-13 00:04:38 +0000
committerroot <root@rshg054.dnsready.net>2012-09-13 00:04:38 +0000
commit843685ce9dd76d37a4c7b0230eacb6d26bdf30dd (patch)
tree9151f782b8f347cf28e0f398341441d659f41f4a /community/python2-numexpr/PKGBUILD
parent21c375ba65c4730e25cd0b135aff7811bf28c77a (diff)
Thu Sep 13 00:04:37 UTC 2012
Diffstat (limited to 'community/python2-numexpr/PKGBUILD')
-rw-r--r--community/python2-numexpr/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/python2-numexpr/PKGBUILD b/community/python2-numexpr/PKGBUILD
new file mode 100644
index 000000000..6ce7467e1
--- /dev/null
+++ b/community/python2-numexpr/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 76098 2012-09-11 10:07:07Z aginiewicz $
+# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
+# Contributor: Sebastien Binet <binet@lblbox>
+
+pkgname=python2-numexpr
+pkgver=2.0.1
+pkgrel=1
+pkgdesc="A JIT compiler for Python expressions"
+url="http://code.google.com/p/numexpr/"
+arch=('i686' 'x86_64')
+license=('MIT')
+depends=('python2-numpy')
+makedepends=('python2-distribute')
+provides=('python-numexpr') # temporary compatibility because of rename
+source=(http://numexpr.googlecode.com/files/numexpr-$pkgver.tar.gz)
+md5sums=('5cdc05c2ef8761daeae8a3182e468ba4')
+
+build() {
+ cd "$srcdir"/numexpr-$pkgver
+
+ python2 setup.py build
+}
+
+package() {
+ cd "$srcdir"/numexpr-$pkgver
+
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+
+ sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/python2|" \
+ $(find "${pkgdir}" -name '*.py')
+
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+