pkgname=python-assimulo pkgver=3.4.3 pkgrel=1 pkgdesc="A package for solving ordinary differential equations and differential algebraic equations" url="http://www.jmodelica.org/assimulo" arch=('x86_64') license=('LGPL') makedepends=('python-setuptools' 'cython0' 'gcc-fortran') depends=('python-scipy' 'python-matplotlib' 'lapack' 'sundials') source=("https://github.com/modelon-community/Assimulo/archive/Assimulo-${pkgver}.tar.gz") sha256sums=('1f4d6fdde384c36bc8297e639cc5ece98817e6bbbe7e54e21ed20b1ff8f6fe7f') prepare() { cd "${srcdir}"/Assimulo-Assimulo-$pkgver curl -L https://github.com/modelon-community/Assimulo/pull/87.patch | patch -p1 # use shared lib sed -i "s|BLASname_t+'.a'|BLASname_t+'.so'|g" setup.py } build() { cd "${srcdir}"/Assimulo-Assimulo-$pkgver } package() { cd "${srcdir}"/Assimulo-Assimulo-$pkgver python setup.py install --root=${pkgdir} --optimize=1 --extra-fortran-link-flags="-shared" --sundials-home=/usr --blas-home=/usr/lib --lapack-home=/usr --extra-fortran-compile-flags="-fallow-argument-mismatch" --extra-c-flags="-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION" }