summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9950aa8f5c89d230257313c64f6857b7d0813f84 (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=instant-hpc-git
pkgver=1.3.0_20140107
pkgrel=1
pkgdesc="A Python module allowing for instant inlining of C and C++ code in Python"
_branch=instant-1.3.0
arch=('i686' 'x86_64')
url="https://bitbucket.org/fenics-project/instant"
license=('LGPL')
groups=('fenics-git')
depends=('python' 'swig')
conflicts=('instant')
provides=('instant')
options=(!emptydirs)
source=("instant::git+https://bitbucket.org/fenics-project/instant.git#tag=${_branch}")
md5sums=('SKIP')

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

prepare() {
    cd instant
    2to3 --output-dir=instant -W -n instant
}

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

package() {
    cd instant
    python setup.py install --root=$pkgdir
}