updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / python-pydde / PKGBUILD
blob699d5015e937ca4c9c814ccd6a198bec8852dbbe
1 # Contributor: Renato Coutinho <renato.coutinho@gmail.com>
2 pkgname=python-pydde
3 pkgver=0.2.2
4 pkgrel=1
5 pkgdesc="A solver for delay differential equations written in Python and C."
6 arch=('i686' 'x86_64')
7 url="http://users.ox.ac.uk/~clme1073/python/PyDDE/"
8 license=('GPL')
9 depends=('python-numpy')
10 makedepends=('setuptools' 'python-numpy')
11 source=(http://users.ox.ac.uk/~clme1073/python/PyDDE/PyDDE-${pkgver}.tar.gz)
12 md5sums=('275eb5f15fb7124f06fef17655f63c12')
14 build() {
15    cd ${srcdir}/PyDDE-${pkgver}
16    ln -s /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ PyDDE/src/numpy
17    sed -i 's#<numpy/arrayobject.h>#"numpy/arrayobject.h"#' PyDDE/src/wrapper.c
18    sed -i 's/extra_compile_args=\[""\]/extra_compile_args=["-I."]/' setup.py
19    python2 setup.py install --prefix=/usr --root=${pkgdir} || return 1