summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorStefan Biereigel2017-12-10 14:39:28 +0100
committerStefan Biereigel2017-12-10 14:40:13 +0100
commit13e93f1c9f05c94c3fd4d6eb807c7a6b3e79aec2 (patch)
treed9c3330038f46360e0c4038c87deb0b663dd0bb3 /PKGBUILD
downloadaur-python-openems-git.tar.gz
initial commit
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}
+}