diff options
author | myles | 2015-07-09 14:26:57 +0100 |
---|---|---|
committer | myles | 2015-07-09 14:26:57 +0100 |
commit | ca5fbc87de46046b3fe050daca73791a494c6970 (patch) | |
tree | 63de6b2321e363fbc57876c0bae87da9628a9477 /PKGBUILD | |
download | aur-instant-git.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..82204bb4125b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Myles English <myles at rockhead dot biz> +pkgname=instant-git +pkgver=20140523 +pkgrel=1 +pkgdesc="A Python module allowing for instant inlining of C and C++ code in Python" +_branch=master +arch=('i686' 'x86_64') +url="https://bitbucket.org/fenics-project/instant" +license=('LGPL') +groups=('fenics-git') +depends=('python2' 'swig') +conflicts=('instant') +provides=('instant') +options=(!emptydirs) +source=("instant::git+https://bitbucket.org/fenics-project/instant.git#branch=${_branch}") +md5sums=('SKIP') + +pkgver() { + cd instant + git log --format="%cd" --date=short -1 | sed 's/-//g' +} + +prepare() { + cd instant + find ./ -name "*" -type f -exec \ + sed -i 's|^#!.*python$|#!/usr/bin/python2|' {} \; +} + +build() { + cd instant + python2 setup.py build +} + +package() { + cd instant + python2 setup.py install --root=$pkgdir +} |