2 # Maintainer: Fabien Devaux <fdev31 at gmail dot com>
3 pkgname=python2-behave-git
6 pkgdesc="BDD, Python style."
8 url="http://pypi.python.org/pypi/behave"
10 depends=('python2' 'python2-distribute' 'python2-parse>=1.3.1')
13 conflicts=('python2-behave')
15 _gitroot="git://github.com/jeamland/behave.git"
21 msg "Connecting to GIT server..."
22 if [[ -d ${_gitname} ]]; then
23 (cd ${_gitname} && git pull origin)
25 git clone --depth=1 ${_gitroot} ${_gitname}
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
37 python2 setup.py build || exit 1
38 python2 setup.py install --root="${pkgdir}" --optimize=1
40 rm -rf ${_gitname}-build