updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / openflower / PKGBUILD
blobe5583b34eaf5f40f0f4c14ffcbccaf289df444f6
1 # Contributor: Brice Méalier <mealier_brice@yahoo.fr>
2 pkgname=openflower
3 pkgver=1.0
4 pkgrel=2
5 pkgdesc="OpenFlower is an open source CFD software written in C++ mainly devoted to the resolution of the turbulent unsteady incompressible Navier-Stokes equations."
6 url="http://openflower.sourceforge.net/index2.html"
7 license="GPL"
8 depends=('laspack')
9 makedepends=('gcc')
10 provides=()
11 conflicts=()
12 replaces=()
13 backup=()
14 install=
15 source=(http://dl.sourceforge.net/sourceforge/openflower/$pkgname-v$pkgver.tar.gz)
16 md5sums=(12fcd0d171cf88129492ebed4982ee64)
18 build() {
19   cd $startdir/src/$pkgname-v$pkgver
20   sed '/<fstream>/ a\#include <math.h>' < src/Geometry/Mesh.cpp > Mesh.cpp
21   mv Mesh.cpp src/Geometry/Mesh.cpp
22   sed '/<iostream>/ a\#include <math.h>' < src/Maths/OpConvection.cpp > OpConvection.cpp
23   mv OpConvection.cpp src/Maths/OpConvection.cpp
24   ./RunMeFirst
25   ./configure --prefix=/usr
26   make || return 1
27   make DESTDIR=$startdir/pkg install