updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / python2-behave-git / PKGBUILD
blob100497b732b39d82a72ea691febe7639666da10d
1 # $Id$
2 # Maintainer: Fabien Devaux <fdev31 at gmail dot com>
3 pkgname=python2-behave-git
4 pkgver=20111208
5 pkgrel=1
6 pkgdesc="BDD, Python style."
7 arch=('any')
8 url="http://pypi.python.org/pypi/behave"
9 license=('MIT')
10 depends=('python2' 'python2-distribute' 'python2-parse>=1.3.1')
11 makedepends=('git')
12 provides=('behave')
13 conflicts=('python2-behave')
15 _gitroot="git://github.com/jeamland/behave.git"
16 _gitname="behave"
18 build() {
19     cd $srcdir
21     msg "Connecting to GIT server..."
22     if [[ -d ${_gitname} ]]; then
23         (cd ${_gitname} && git pull origin)
24     else
25         git clone --depth=1 ${_gitroot} ${_gitname}
26     fi
28     msg "GIT checkout done or server timeout"
29     msg "Starting make..."
31     rm -rf ${_gitname}-build
32     cp -r ${_gitname} ${_gitname}-build
34     cd ${srcdir}/${_gitname}-build
36     rm -fr test
37     python2 setup.py build || exit 1
38     python2 setup.py install --root="${pkgdir}" --optimize=1
40     rm -rf ${_gitname}-build