Guest User

python2-pysces 0.8.0rc4 PKGBUILD

a guest
Mar 27th, 2013
41
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Michael Schubert <mschu.dev at gmail>
  2.  
  3. pkgname=python2-pysces
  4. _projectname=pysces
  5. pkgver=0.8.0rc4
  6. pkgrel=1
  7. pkgdesc="Python simulator for Cellular Systems"
  8. arch=('i686' 'x86_64')
  9. depends=('python2-scipy' 'python2-matplotlib')
  10. optdepends=('gnuplot: as an alternative plotting back-end and 3D plots'
  11.             'ipython2: for interactive modelling sessions (highly recommended)'
  12.             'libsbml: for SBML import and export'
  13.             'python2-pysundials: for CVODE and Events support'
  14.             'python2-pysces-metatool: for elementary mode support')
  15. makedepends=('gcc-fortran')
  16. url="http://pysces.sourceforge.net/"
  17. license=('BSD' 'GPL')
  18. source=("https://downloads.sourceforge.net/project/$_projectname/$_projectname/$_projectname-0.7/$_projectname-$pkgver.zip" "setup.py.patch")
  19. md5sums=('85b76ff80536c303ff8ba2f3992720a3' 'fcab712678ee33a6943235d90a1ecd30')
  20.  
  21. build() {
  22.   cd "$srcdir/pysces-$pkgver"
  23.   # Arch Linux: 9 Fortran modules should be built as shared library
  24.   # https://sourceforge.net/p/pysces/bugs/9/
  25.   patch -p0 < "$srcdir/setup.py.patch"
  26.   python2 setup.py build
  27. }
  28.  
  29. package() {
  30.   cd "$srcdir/pysces-$pkgver"
  31.   python2 setup.py install --root="$pkgdir/" --skip-build --optimize=1
  32. }
RAW Paste Data