updated on Tue Jan 17 00:10:10 UTC 2012
[aur-mirror.git] / sfepy / PKGBUILD
blobde310167721752c64a0b54c5f523d518f8eaf1d7
1 # Maintainer: Renato Coutinho <renato.coutinho@gmail.com>
2 pkgname=sfepy
3 pkgver=2011.3
4 pkgrel=2
5 pkgdesc="Simple Finite Elements in Python"
6 arch=('i686' 'x86_64')
7 url="http://sfepy.kme.zcu.cz"
8 license=('BSD')
9 source=(http://sfepy.googlecode.com/files/${pkgname}-${pkgver}.tar.gz)
10 md5sums=('3ebf88faabb72295836b22f3e724c90a')
12 makedepends=('python2-distribute')
13 depends=('python2-numpy' 'python2-scipy' 'swig' 'python2-pyparsing' 
14          'python2-matplotlib' 'python-pytables')
16 optdepends=('scikits-umfpack: used to solve most systems'
17             'python2-sympy: used by some tests and functions'
18             'python-pexpect: required by schroedinger.py'
19             'gmsh: required by schroedinger.py (2D)'
20             'tetgen: required by schroedinger.py (3D)'
21             'python2-ipython: required for isfepy'
22             'python-multiprocessing: required by log.py (live plotting)')
24 build() {
25    cd ${srcdir}/${pkgname}-${pkgver}
26    python2 setup.py build_ext --inplace
27    python2 setup.py install --prefix=/usr --root=${pkgdir} || return 1
29    cd ${pkgdir}/usr/bin
30    mkdir ${pkgdir}/usr/share/${pkgname}/bin
31    mv eigen.py findSurf.py genPerMesh.py postproc.py runTests.py shaper.py test_install.py extractor.py friction_slip.py homogen.py plotPerfusionCoefs.py probe.py schroedinger.py simple.py ${pkgdir}/usr/share/${pkgname}/bin