updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / dolfin / PKGBUILD
blob5e786e8f047ab4b20fabb930701b2f3f84302372
1 # Maintainer: Myles English <myles at rockhead dot biz>
2 pkgname=dolfin
3 pkgver=1.0.0
4 pkgrel=1
5 pkgdesc="the C++/Python interface of FEniCS, providing a consistent PSE (Problem Solving Environment) for ordinary and partial differential equations."
6 arch=(any)
7 url="http://launchpad.net/dolfin"
8 license=('GPL')
9 groups=('fenics')
10 depends=('python2' 'boost' 'libxml2' 'petsc' 'lapack' 'blas')
11 makedepends=('cmake' 'swig')
12 optdepends=('trilinos' 'armadillo')
13 options=(!emptydirs)
14 source=($url/1.0.x/$pkgver/+download/$pkgname-$pkgver.tar.gz)
15 noextract=()
16 md5sums=('f2d27de414c2e1768a03464bb38fef38')
18 build() {
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 
24     cd 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
33     make
36 package() {
37     cd $srcdir/$pkgname-$pkgver/build
38     make install DESTDIR=$pkgdir
41 # vim:set ts=2 sw=2 et: