summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2a62217cadf9b804b6523d29e84b57be43d78d0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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.6.0_20210216
pkgrel=1
_branch=master
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/\"//')_$(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}"
}