updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / python2-sloppycell / PKGBUILD
blob996ee17f38bf21c2fd820d75e4bc2f64dd0af051
1 # Maintainer: Michael Schubert <mschu.dev at gmail>
3 pkgname=python2-sloppycell
4 pkgver=20110614
5 pkgrel=1
6 pkgdesc="Software environment for simulation and analysis of biomolecular networks"
7 arch=('i686' 'x86_64')
8 url="http://sloppycell.sourceforge.net/"
9 license=('BSD')
10 depends=('python2-scipy' 'python2-numpy' 'lapack')
11 makedepends=('cvs' 'gcc-fortran')
13 _cvsroot=":pserver:anonymous@sloppycell.cvs.sourceforge.net:/cvsroot"
14 _cvsmod="sloppycell"
15 _cvsMod="SloppyCell"
17 build() {
18   cd "$srcdir"
19   if [ -d ${_cvsMod}/CVS ]; then
20     cd ${_cvsMod}
21     cvs -q update -dA
22   else
23     cvs -q -z3 -d${_cvsroot}/${_cvsmod} co ${_cvsMod}
24     cd ${_cvsMod}
25     sed -i "/daskr =/s|$| extra_link_args='-Wl,--defsym,main=main',|" setup.py
26   fi
27   python2 setup.py build
30 package() {
31   cd "$srcdir/$_cvsMod"
32   python2 setup.py install --root="$pkgdir/" --skip-build --optimize=1