Skip to content

Instantly share code, notes, and snippets.

@joeydumont
Created April 5, 2013 15:09
Show Gist options
  • Save joeydumont/5320049 to your computer and use it in GitHub Desktop.
Save joeydumont/5320049 to your computer and use it in GitHub Desktop.
PKGBUILD for NGsolve-5.0.0.
# Maintainer: mickele <mimocciola@yahoo.com>
pkgname=ngsolve
pkgver=5.0.0
pkgrel=1
pkgdesc="NGSolve is a general purpose Finite Element Library on top of Netgen"
url="http://www.hpfem.jku.at/ngsolve/"
depends=('tcl' 'gcc-libs')
makedepends=('make' 'gcc' 'libtool')
arch=('i686' 'x86_64')
license=('LGPL')
source=(http://downloads.sourceforge.net/ngsolve/${pkgname}-${pkgver}.tar.gz)
build() {
cd "${pkgname}-${pkgver}" || return 1
mv basiclinalg/clapack.h basiclinalg/ngsolve_clapack.h || return 1
# clapack.h conflicts with clapack from atlas-lapack
for _FILE in `grep -Rl "clapack.h" *`
do
sed -e "s|clapack.h|ngsolve_clapack.h|" \
-i ${_FILE}
done
# strange, seems a typo error!
sed -e "s|l const FEL \& fel = static_cast<const FEL\&> (bfel);| co$
-i fem/diffop.hpp
./configure --prefix=/usr || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
(cd "${pkgdir}/usr/lib" && rm -rf *.la) || return 1
}
md5sums=('af30e32061c14eefbc3678b8349cfa7b')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment