summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorsigvaldm2018-01-08 14:52:55 +0100
committersigvaldm2018-01-08 14:52:55 +0100
commit7a24c39c0c97070ce6bfc8a4189a0755ef052414 (patch)
tree516d7b5e3139afdd5f4cedd35e462edcdee1306c /PKGBUILD
downloadaur-7a24c39c0c97070ce6bfc8a4189a0755ef052414.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6f791873a69
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Sigvald Marholm <marholm@marebakken.com>
+# Based on python-ufl-git, maintained by Lucas H. Gabrielli <heitzmann@gmail.com>
+
+_base=ufl
+_fragment="#tag=2017.1.0"
+pkgname=python-${_base}
+pkgdesc="Unified form language (stable)."
+pkgver=20170509
+pkgrel=1
+arch=('any')
+url="https://bitbucket.org/fenics-project/${_base}"
+license=('GPL3')
+groups=('fenics')
+conflicts=('python-ufl-git')
+depends=('python-numpy')
+makedepends=('git')
+options=(!emptydirs)
+source=("${_base}::git+https://bitbucket.org/fenics-project/${_base}.git${_fragment}")
+md5sums=('SKIP')
+
+pkgver() {
+ cd ${_base}
+ git log --format="%cd" --date=short -1 | sed 's/-//g'
+}
+
+build() {
+ cd ${_base}
+ python setup.py build
+}
+
+package() {
+ cd ${_base}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
+}
+
+# vim: shiftwidth=2 softtabstop=2 tabstop=2 noexpandtab