summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed4bc3d6fbd384cb37770cea9bced91fd592d71b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Lucas H. Gabrielli <heitzmann@gmail.com>
pkgname=meep-git
pkgver=1.7.0.r22.g8f4ea5b4
pkgrel=1
pkgdesc='Free finite-difference time-domain (FDTD) software for electromagnetic simulations (includes python interface)'
arch=('i686' 'x86_64')
url='https://github.com/stevengj/meep'
license=('GPL2')
depends=('harminv-git' 'libctl-git' 'mpb-git' 'hdf5' 'gsl' 'fftw' 'openmpi' 'suitesparse' 'swig' 'python-numpy')
makedepends=('gcc-fortran' 'git')
optdepends=('h5utils: visualization and conversion of scientific data'
            'python-h5py: process HDF5 data from python'
            'python-mpi4py: use MPI from the python interface'
            'mpb-git: calculation of electromagnetic modes'
            'libgdsii-git: support for GDSII files')
options=('!libtool' '!makeflags')
provides=('meep')
conflicts=('meep')
source=('git+https://github.com/stevengj/meep.git')
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/meep"
  git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/meep"
  ./autogen.sh --prefix=/usr --enable-shared --with-mpi --with-python
  make
}

package() {
  cd "${srcdir}/meep"
  make DESTDIR="$pkgdir" install
}