diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ba548626f008 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Julian Hornich <hornich at kth dot se> +pkgname=fiat-hpc-git +pkgdesc="Supports generation of arbitrary order instances of the Lagrange elements on lines, triangles, and tetrahedra. HPC version" +pkgver=1.4.0_20200109 +pkgrel=1 +_branch=feature/python3 +arch=('i686' 'x86_64') +url="https://bitbucket.org/adaptivesimulations/fiat-hpc" +license=('LGPL') +groups=('dolfin-hpc-git') +depends=('python' 'python-numpy') +provides=('fiat-hpc') +conflicts=('fiat') +options=(!emptydirs) +source=("fiat::git+https://bitbucket.org/adaptivesimulations/fiat-hpc.git#branch=${_branch}") +md5sums=('SKIP') + +pkgver() { + cd fiat + echo "$(grep version setup.py | sed 's/.*="//;s/".*//g')_$(git log --format="%cd" --date=short -1 | sed 's/-//g')" +} + +prepare() { + cd fiat +} + +build() { + cd fiat + python setup.py build +} + +package() { + cd fiat + python setup.py install --prefix=/usr --root="${pkgdir}" +} |