updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / python2-pysces / PKGBUILD
blobbf8cf50be4a9b44e3aa37109267b66e1670fbc84
1 # Maintainer: Michael Schubert <mschu.dev at gmail>
3 pkgname=python2-pysces
4 pkgver=0.7.9
5 pkgrel=1
6 pkgdesc="Python simulator for Cellular Systems"
7 arch=('i686' 'x86_64')
8 depends=('python2-numpy' 'python2-scipy' 'python2-matplotlib')
9 optdepends=('pysundials' 'libsbml' 'gnuplot' 'ipython')
10 builddepends=('gfortran')
11 url="http://pysces.sourceforge.net/"
12 license=('BSD' 'GPL')
13 source="http://sourceforge.net/projects/pysces/files/pysces/pysces-0.7/pysces-$pkgver.tar.bz2"
14 md5sums=('11997a8261c5f436ac98fc6d9eb32357')
16 build() {
17   cd "$srcdir/pysces-$pkgver"
18   sed -i "/pitcon =/s|)$|,extra_link_args=['-shared'])|" setup.py
19   sed -i "180s/])/],extra_link_args=['-shared'])/" setup.py
20   python2 setup.py build
23 package() {
24   cd "$srcdir/pysces-$pkgver"
25   python2 setup.py install --root="$pkgdir/" --skip-build --optimize=1