updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / python2-copasi-bin / PKGBUILD
blob0c3d4463204c9d6399cc775f6024c9d2f3e6e837
1 # Maintainer: Michael Schubert <mschu.dev at gmail>
3 pkgname=python2-copasi-bin
4 pkgver=4.7
5 pkgrel=1
6 pkgdesc="Tool for simulation and analysis of biochemical network dynamics"
7 arch=('i686' 'x86_64')
8 url="http://www.copasi.org/"
9 license=('Artistic 2.0')
10 depends=('python2')
12 test $CARCH == 'i686' && \
13 source=("http://otto.bioquant.uni-heidelberg.de/downloads/copasi/fd3c2a12eb06e2e91f63fcd6ebf5321e/copasi-34-linux-python27-x86.tar.gz") && \
14 md5sums=('24f56e0d2ae213a00b4d591791efc64f')
16 test $CARCH == 'x86_64' && \
17 source=("http://otto.bioquant.uni-heidelberg.de/downloads/copasi/fd3c2a12eb06e2e91f63fcd6ebf5321e/copasi-34-linux-python27-x64.tar.gz") && \
18 md5sums=('40c3e53d84a38dcf148743076680a754')
20 package() {
21     cd "$srcdir"
22     pydir=`python2 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`
23     install -Dm755 COPASI.py "$pkgdir/$pydir/COPASI.py"
24     install -Dm644 _COPASI.so "$pkgdir/$pydir/_COPASI.so"
26     cd "$pkgdir/$pydir"
27     `python2 -c "import py_compile; py_compile.compile('COPASI.py')"`