1 # Contributor: Renato Coutinho <renato.coutinho@gmail.com>
5 pkgdesc="A solver for delay differential equations written in Python and C."
7 url="http://users.ox.ac.uk/~clme1073/python/PyDDE/"
9 depends=('python3-numpy')
10 makedepends=('python3-numpy')
11 source=("http://users.ox.ac.uk/~clme1073/python/PyDDE/PyDDE-${pkgver}.tar.gz"
14 md5sums=('275eb5f15fb7124f06fef17655f63c12'
15 '3814569707d1dfb89c754afb746f87cf'
16 '7d937ddf1ce78e778b07711ea19f2ddf')
19 cd ${srcdir}/PyDDE-${pkgver}
20 ln -s /usr/lib/python3.2/site-packages/numpy/core/include/numpy/ PyDDE/src/numpy
21 sed -i 's#<numpy/arrayobject.h>#"numpy/arrayobject.h"#' PyDDE/src/wrapper.c
22 sed -i 's/extra_compile_args=\[""\]/extra_compile_args=["-I."]/' setup.py
23 patch -p1 < ${srcdir}/2to3.diff
24 patch PyDDE/src/wrapper.c < ${srcdir}/Py3-C-API.diff
25 python setup.py install --prefix=/usr --root=${pkgdir} || return 1