summaryrefslogtreecommitdiff
path: root/community/python2-numexpr/PKGBUILD
blob: a59c784ba3fcb0bfdf6909bc1cb224d4c5f94bbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $Id: PKGBUILD 76243 2012-09-15 08:46:42Z aginiewicz $
# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
# Contributor: Sebastien Binet <binet@lblbox>

pkgname=python2-numexpr
pkgver=2.0.1
pkgrel=2
pkgdesc="A JIT compiler for Python expressions"
url="http://code.google.com/p/numexpr/"
arch=('i686' 'x86_64' 'mips64el')
license=('MIT')
depends=('python2-numpy')
makedepends=('python2-distribute')
provides=('python-numexpr') # temporary compatibility because of rename
replaces=('python-numexpr') # (there is no python 3 version yet)
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
}