updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / ffc / PKGBUILD
blobc36a66cd231b96245826a2d55b2748d5a6e6ea7c
1 # Maintainer: Myles English <myles at rockhead dot biz>
2 pkgname=ffc
3 pkgver=0.9.10
4 pkgrel=1
5 pkgdesc="A compiler for finite element variational forms."
6 arch=(any)
7 url="http://launchpad.net/ffc"
8 license=('GPL')
9 groups=('fenics')
10 depends=('python2' 'fiat' 'ufc' 'ufl' 'python2-numpy')
11 optdepends=('FErari: optimisation support')
12 options=(!emptydirs)
13 source=($url/trunk/$pkgver/+download/$pkgname-$pkgver.tar.gz)
14 md5sums=('2e8f6689de38604e9594f1ef798f207c')
16 build() {
17   cd "$srcdir/$pkgname-$pkgver"
18   find ${srcdir} -name "*" -type f -exec \
19       sed -i 's#\(/usr/bin/env \|/usr/bin/\)python[2-3]*#\1python2#' {} \;
20   python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1