summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 95ab97cb91478c339ee58b2a8f9c77e874541679 (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
37
# Maintainer: Julian Hornich <hornich at kth dot se>
pkgname=ffc-hpc-git
pkgver=1.2.0_20210216
pkgrel=1
pkgdesc="A compiler for finite element variational forms. HPC version"
_branch=master
arch=('i686' 'x86_64')
url="https://bitbucket.org/fenics-project/ffc-hpc"
license=('LGPL')
groups=('dolfin-hpc-git')
depends=('python' 'fiat-hpc-git' 'ufl-hpc-git' 'python-numpy' 'python-six' 'python-sympy')
optdepends=()
makedepends=('git' 'python' 'sed')
provides=('ffc-hpc')
conflicts=('ffc-hpc')
options=(!emptydirs)
source=("ffc-hpc::git+https://bitbucket.org/adaptivesimulations/ffc-hpc.git#branch=${_branch}")
md5sums=('SKIP')

pkgver() {
    cd ffc-hpc
    echo "$(head -n 1 ChangeLog | sed 's/ \[.*//')_$(git log --format="%cd" --date=short -1 | sed 's/-//g')"
}

prepare() {
    cd ffc-hpc
}

build() {
    cd ffc-hpc
    python setup.py build
}

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