1 # Maintainer: Fabien Devaux <fdev31 at gmail dot com >
2 pkgname=python2-supplement-git
5 pkgdesc="Python code completion library"
7 url="http://github.com/baverman/supplement"
10 makedepends=('python2-distribute')
12 _gitroot="git://github.com/baverman/supplement.git"
18 msg "Connecting to GIT server..."
19 if [[ -d ${_gitname} ]]; then
20 (cd ${_gitname} && git pull origin)
22 git clone --depth=1 ${_gitroot} ${_gitname}
25 msg "GIT checkout done or server timeout"
26 msg "Starting make..."
28 rm -rf ${_gitname}-build
29 cp -r ${_gitname} ${_gitname}-build
31 cd ${srcdir}/${_gitname}-build
33 python2 setup.py build
37 cd ${srcdir}/${_gitname}-build
38 python2 setup.py install --root=$startdir/pkg
40 install -D -m664 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
42 rm -rf ${_gitname}-build
45 # vim:set ts=2 sw=2 et: