updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / python3-pydde / PKGBUILD
blob97187ae02376fdd62ac31fa8a00509fd5af97ee9
1 # Contributor: Renato Coutinho <renato.coutinho@gmail.com>
2 pkgname=python3-pydde
3 pkgver=0.2.2
4 pkgrel=2
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=('python3-numpy')
10 makedepends=('python3-numpy')
11 source=("http://users.ox.ac.uk/~clme1073/python/PyDDE/PyDDE-${pkgver}.tar.gz"
12         "2to3.diff"
13         "Py3-C-API.diff")
14 md5sums=('275eb5f15fb7124f06fef17655f63c12'
15          '3814569707d1dfb89c754afb746f87cf'
16          '7d937ddf1ce78e778b07711ea19f2ddf')
18 build() {
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