# Contributor: Anton Bazhenov # Maintainer: Stefan Husmann pkgname=meep pkgver=1.27.0 pkgrel=1 pkgdesc="A free finite-difference time-domain simulation software package" arch=('x86_64') url="http://ab-initio.mit.edu/wiki/index.php/Meep" license=('GPL') depends=('openmpi' 'harminv' 'libctl' 'hdf5' 'gsl' 'fftw' 'guile' 'julia' 'mpb') makedepends=('gcc-fortran' 'suitesparse' 'swig') optdepends=('h5utils: for visualization and conversion of scientific data') options=('!libtool' '!makeflags' 'staticlibs') source=("$pkgname-$pkgver.tar.gz::https://github.com/NanoComp/$pkgname/archive/v$pkgver.tar.gz") sha256sums=('7bdadb8562f82a461e3bc73227599bda9e9fa5dbf861d96cd04ce581d1089c0b') build() { cd $pkgname-$pkgver ./autogen.sh CFLAGS=" -fPIC" --prefix=/usr --enable-shared --with-mpi --without-python make } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install }