diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f2f9b97454c5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python-fiat-git + pkgdesc = Supports generation of arbitrary order instances of the Lagrange elements on lines, triangles, and tetrahedra. + pkgver = 20161105 + pkgrel = 1 + url = https://bitbucket.org/fenics-project/fiat + arch = any + groups = fenics-git + license = GPL3 + makedepends = git + depends = python + options = !emptydirs + source = fiat::git+https://bitbucket.org/fenics-project/fiat.git#branch=master + md5sums = SKIP + +pkgname = python-fiat-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9fe27ebcf589 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Lucas H. Gabrielli <heitzmann@gmail.com> + +_base=fiat +_fragment="#branch=master" +pkgname=python-${_base}-git +pkgdesc="Supports generation of arbitrary order instances of the Lagrange elements on lines, triangles, and tetrahedra." +pkgver=20161105 +pkgrel=1 +arch=('any') +url="https://bitbucket.org/fenics-project/${_base}" +license=('GPL3') +groups=('fenics-git') +depends=('python') +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 |