summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1b06d11a308
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Stefan Biereigel <stefan@biereigel.de>
+
+pkgname=python-openems-git
+pkgver=v0.0.35.r28.g6133dea
+pkgrel=1
+pkgdesc="a free and open source EC-FDTD solver"
+url="https://github.com/thliebig/openEMS"
+arch=('i686' 'x86_64')
+license=('GPL3')
+depends=('openems' 'python-csxcad')
+makedepends=('cython')
+provides=('python-openems')
+conflicts=('python-openems')
+
+source=(git+https://github.com/thliebig/openEMS)
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/openEMS"
+ git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/openEMS/python"
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir/openEMS/python"
+ python setup.py install --root=${pkgdir}
+}