summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 206af471703c04213e543226e4c0c009b83900d9 (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
36
# Maintainer: Julian Hornich <hornich at kth dot se>
pkgname=ufl-hpc-git
pkgdesc="Unified form language. HPC version"
pkgver=1.2.0_20210216
pkgrel=1
_branch=master
arch=('i686' 'x86_64')
url="https://bitbucket.org/adaptivesimulations/ufl-hpc/"
license=('LGPL')
groups=('dolfin-hpc-git')
depends=('python' 'python-six')
makedepends=('git' 'python')
provides=('ufl-hpc')
conflicts=('ufl')
options=(!emptydirs)
source=("ufl::git+https://bitbucket.org/adaptivesimulations/ufl-hpc.git#branch=${_branch}")
md5sums=('SKIP')

pkgver() {
  cd ufl
  echo "$(grep 'version =' setup.py | sed 's/.*= \"//;s/\"//')_$(git log --format="%cd" --date=short -1 | sed 's/-//g')"
}

prepare() {
  cd ufl
}

build() {
  cd ufl
  python setup.py build
}

package() {
  cd ufl
  python setup.py install --prefix=/usr --root="${pkgdir}"
}