summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25f7f3112a5c3e7b3d90bfb5465b6446083e77fb (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: Myles English <myles at rockhead dot biz>
pkgname=fiat-git
pkgdesc="Supports generation of arbitrary order instances of the Lagrange elements on lines, triangles, and tetrahedra."
pkgver=20161027
pkgrel=1
_branch=master
arch=('i686' 'x86_64')
url="https://bitbucket.org/fenics-project/fiat"
license=('LGPL')
groups=('fenics-git')
depends=('python2' 'python2-scientificpython')
provides=('fiat')
conflicts=('fiat')
options=(!emptydirs)
source=("fiat::git+https://bitbucket.org/fenics-project/fiat.git#branch=${_branch}")
md5sums=('SKIP')

pkgver() {
    cd fiat
    git log --format="%cd" --date=short -1 | sed 's/-//g'
}

prepare() {
    cd fiat
    find ./ -name "*" -type f -exec \
        sed -i 's|^#!.*python$|#!/usr/bin/python2|' {} \;
}

build() {
    cd fiat
    python2 setup.py build
}

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