updated on Fri Jan 20 16:18:17 UTC 2012
[aur-mirror.git] / mpb / PKGBUILD
blobbacd3204194663a28ab7d1567aa654ff36a0bc3e
1 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
2 # Contributor: Tom K <tomk@runbox.com>
4 pkgname=mpb
5 pkgver=1.4.2
6 pkgrel=4
7 pkgdesc="A program for computing the band structures and electromagnetic modes"
8 arch=('i686' 'x86_64')
9 url="http://ab-initio.mit.edu/wiki/index.php/MIT_Photonic_Bands"
10 license=('GPL')
11 depends=('lapack' 'hdf5' 'fftw2' 'guile' 'libctl')
12 makedepends=('gcc-fortran')
13 source=(http://ab-initio.mit.edu/$pkgname/$pkgname-$pkgver.tar.gz)
14 md5sums=('e1e618b0db343a7a3fc38eabd69d008b')
16 build() {
17   cd "$srcdir"/$pkgname-$pkgver
18   # configure includes two options for working with GNU Fortran and HDF5 v1.8.x
19   ./configure \
20     F77="gfortran" \
21     CPPFLAGS="-DH5_USE_16_API=1" \
22     --prefix=/usr \
23     --mandir=/usr/share/man 
24   make 
26 package() { 
27   cd "$srcdir"/$pkgname-$pkgver
28   make \
29     prefix="$pkgdir"/usr \
30     mandir="$pkgdir"/usr/share/man \
31     install