1 # Maintainer: mickele <mimocciola@yahoo.com>
5 pkgdesc="NGSolve is a general purpose Finite Element Library on top of Netgen"
6 url="http://www.hpfem.jku.at/ngsolve/"
7 depends=('tcl' 'gcc-libs')
8 makedepends=('make' 'gcc' 'libtool')
14 source=(http://downloads.sourceforge.net/ngsolve/${pkgname}-${pkgver}.tar.gz)
18 cd "${pkgname}-${pkgver}" || return 1
20 mv basiclinalg/clapack.h basiclinalg/ngsolve_clapack.h || return 1
22 # clapack.h conflicts with clapack from atlas-lapack
23 for _FILE in `grep -Rl "clapack.h" *`
25 sed -e "s|clapack.h|ngsolve_clapack.h|" \
28 # strange, seems a typo error!
29 sed -e "s|l const FEL \& fel = static_cast<const FEL\&> (bfel);| const FEL \& fel = static_cast<const FEL\&> (bfel);|" \
32 ./configure --prefix=/usr || return 1
34 make DESTDIR="${pkgdir}" install || return 1
35 (cd "${pkgdir}/usr/lib" && rm -rf *.la) || return 1
37 md5sums=('5b836679eccaa65c5f912e6fe9a7e0d9')