updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / ufc / PKGBUILD
blobbe9789f52e8f0a103b599c3dc4af17f4c54363ce
1 # Maintainer: Myles English <myles at rockhead dot biz>
2 pkgname=ufc
3 pkgver=2.0.1
4 pkgrel=1
5 pkgdesc="A unified framework for finite element assembly."
6 arch=(any)
7 url="http://launchpad.net/ufc"
8 license=('?')
9 groups=('fenics')
10 depends=('python2' 'boost' 'swig')
11 options=(!emptydirs)
12 source=($url/trunk/2.0.1/+download/$pkgname-$pkgver.tar.gz)
13 md5sums=('3f39c2ae490d2ce3a6420c622cab3b73')
15 build() {
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
28     make
31 package() {
32     cd $srcdir/$pkgname-$pkgver/build
33     make install DESTDIR=$pkgdir
36 # vim:set ts=2 sw=2 et: