diff options
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a92f91e9a4e5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = python2-meep + pkgdesc = Python binding for MEEP (FDTD solver by MIT) + pkgver = 1.4.2 + pkgrel = 1 + url = https://launchpad.net/python-meep + arch = x86_64 + arch = i686 + license = GPL + depends = python2 + depends = python2-numpy + depends = python2-scipy + depends = python2-matplotlib + depends = meep + depends = openmpi + depends = swig + source = https://launchpad.net/python-meep/1.4/1.4/+download/python-meep-1.4.2.tar + md5sums = f8913542d18b0dda92ebc64f0a10ce56 + +pkgname = python2-meep + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..530141cffcdd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Lucas H. Gabrielli <heitzmann@gmail.com> +pkgname=python2-meep +pkgver=1.4.2 +pkgrel=1 +pkgdesc="Python binding for MEEP (FDTD solver by MIT)" +url="https://launchpad.net/python-meep" +arch=('x86_64' 'i686') +license=('GPL') +depends=('python2' 'python2-numpy' 'python2-scipy' 'python2-matplotlib' 'meep' 'openmpi' 'swig') +makedepends=() +conflicts=() +replaces=() +backup=() +install= +source=("https://launchpad.net/python-meep/1.4/1.4/+download/python-meep-${pkgver}.tar") +md5sums=('f8913542d18b0dda92ebc64f0a10ce56') + +build() { + cd "${srcdir}/python-meep" + tail -n +3 meep-site-init.py.standard > meep-site-init.py + python2 setup-mpi.py clean --all + python2 setup-mpi.py build_ext +} + +package() { + cd "${srcdir}/python-meep" + python2 setup-mpi.py install --prefix=/usr --root=${pkgdir} +} + +# vim:set ts=2 sw=2 et: |