1 # Maintainer: Myles English <myles at rockhead dot biz>
5 pkgdesc="A unified framework for finite element assembly."
7 url="http://launchpad.net/ufc"
10 depends=('python2' 'boost' 'swig')
12 source=($url/trunk/2.0.1/+download/$pkgname-$pkgver.tar.gz)
13 md5sums=('3f39c2ae490d2ce3a6420c622cab3b73')
16 cd "$srcdir/$pkgname-$pkgver"
17 [[ -e build ]] || mkdir build
18 cd "$srcdir/$pkgname-$pkgver/build"
20 # replace python with python2 everywhere
21 find ${srcdir} -name "*" -type f -exec \
22 sed -i 's#\(/usr/bin/env \|/usr/bin/\)python[2-3]*#\1python2#' {} \;
24 cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
25 -DPYTHON_EXECUTABLE:PATH=/usr/bin/python2 \
26 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python2.7 \
27 -DPYTHON_LIBRARY:FILEPATH=/usr/lib/libpython2.7.so
32 cd $srcdir/$pkgname-$pkgver/build
33 make install DESTDIR=$pkgdir
36 # vim:set ts=2 sw=2 et: