1 # Maintainer: Myles English <myles at rockhead dot biz>
5 pkgdesc="the C++/Python interface of FEniCS, providing a consistent PSE (Problem Solving Environment) for ordinary and partial differential equations."
7 url="http://launchpad.net/dolfin"
10 depends=('python2' 'boost' 'libxml2' 'petsc' 'lapack' 'blas')
11 makedepends=('cmake' 'swig')
12 optdepends=('trilinos' 'armadillo')
14 source=($url/1.0.x/$pkgver/+download/$pkgname-$pkgver.tar.gz)
16 md5sums=('f2d27de414c2e1768a03464bb38fef38')
19 cd "$srcdir/$pkgname-$pkgver"
20 find ${srcdir} -name "*" -type f -exec \
21 sed -i 's#\(/usr/bin/env \|/usr/bin/\)python[2-3]*#\1python2#' {} \;
23 [[ -e build ]] || mkdir build
26 cmake .. -DCMAKE_CXX_COMPILER=/usr/bin/g++ \
27 -DCMAKE_INSTALL_PREFIX=${pkg}/usr \
28 -DPYTHON_EXECUTABLE:PATH=/usr/bin/python2 \
29 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python2.7 \
30 -DPYTHON_LIBRARY:FILEPATH=/usr/lib/libpython2.7.so \
31 -DDOLFIN_ENABLE_MPI=ON
37 cd $srcdir/$pkgname-$pkgver/build
38 make install DESTDIR=$pkgdir
41 # vim:set ts=2 sw=2 et: