1 # Contributor: Christoph Siegenthaler < csi@gmx.ch >
5 pkgdesc="Elmer is a simulation tool for CFD, FEM, electromagnetics, heat transfer and others featuring a PDE solver"
7 makedepends=('gcc-fortran')
8 url="http://www.csc.fi/elmer/"
9 source=(ftp://ftp.funet.fi/pub/sci/physics/elmer/src/${pkgname}-${pkgver}.tar.gz elmerpost \
10 copy.patch sico2elmer queryglxext)
11 md5sums=('b9478e412e62a28196760624b97bfed3' '1467e8b4b5e3ab494dac16e4b400f6d4' \
12 'f65422b491c009e2dd0b988082288dd0' '290912461c09fa297b58de39ddb0c246' \
13 'fdae7f5b7890b45424ee5963607882e5')
16 mkdir -p $startdir/pkg/opt/elmer/bin
17 mkdir -p $startdir/pkg/opt/elmer/share/elmerpost/{tcl,modules,lib,help}
18 mkdir -p $startdir/pkg/usr/bin
19 cd $startdir/src/${pkgname}-${pkgver}
21 patch -p1 -i ../copy.patch
26 sed -i "s#STARTDIR#$startdir#" $startdir/src/${pkgname}-${pkgver}/src/Makefile.in
28 ./configure --prefix=/opt/elmer || return 1
30 make DESTDIR=$startdir/pkg install || return 1
31 install -c -m 755 $startdir/src/elmerpost $startdir/pkg/usr/bin
32 install -c -m 755 $startdir/src/sico2elmer $startdir/pkg/usr/bin
33 install -c -m 755 $startdir/src/queryglxext $startdir/pkg/usr/bin