diff options
author | Joshua I. Haase H. (xihh) <hahj87@gmail.com> | 2012-09-18 23:41:48 -0500 |
---|---|---|
committer | Joshua I. Haase H. (xihh) <hahj87@gmail.com> | 2012-09-18 23:41:48 -0500 |
commit | fa95bb04dbbc63d07b1f84fb8ce5272085097eb7 (patch) | |
tree | 09eb51305956e84dfb79aa89f5b99e595371c54d /community/python2-numexpr | |
parent | 6eefbbf4300e680dc93487c11a1ae35ee8299f06 (diff) | |
parent | 5a05be089c68617c86c9c555e63f2b0314451ebf (diff) |
Merge branch 'master' of gitpar:abslibre-mips64el
Diffstat (limited to 'community/python2-numexpr')
-rw-r--r-- | community/python2-numexpr/PKGBUILD | 34 |
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 +} + |