diff options
author | Firas Zaidan | 2020-04-08 22:34:18 +0200 |
---|---|---|
committer | Firas Zaidan | 2020-04-08 22:34:18 +0200 |
commit | 4641194ed466347bbf98348bf848277ed8668016 (patch) | |
tree | 763e60c771cfb42e7af01070e7094d50248158fb /PKGBUILD | |
download | aur-4641194ed466347bbf98348bf848277ed8668016.tar.gz |
Add PKGBUILD for version 2.6.9
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d36a60a0b607 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Firas Zaidan <firas@zaidan.de> +# Contributor: Andrzej Giniewicz <gginiu@gmail.com> +# Contributor: Sebastien Binet <binet@lblbox> + +pkgname=python2-numexpr +pkgver=2.6.9 +pkgrel=1 +pkgdesc="Fast numerical array expression evaluator for Python, NumPy, PyTables, pandas" +url="https://github.com/pydata/numexpr" +arch=('x86_64') +license=('MIT') +makedepends=('python2-setuptools' 'python2-numpy') +source=($pkgname-$pkgver.tar.gz::https://github.com/pydata/numexpr/archive/v$pkgver.tar.gz) +sha1sums=('db6cbb412fb1f85f87814002b88d0e479cf3ac51') + +prepare() { + cd "$srcdir/numexpr-$pkgver" + + sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \ + -i $(find . -name '*.py') +} + +build() { + cd "$srcdir"/numexpr-$pkgver + python2 setup.py build +} + +package() { + depends=('python2-numpy') + + cd "$srcdir"/numexpr-$pkgver + + python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} |