1 # Maintainer: Baptiste Jonglez <zerstorer@free.fr>
2 pkgname=python2-restkit-git
5 pkgdesc="Restkit is an HTTP resource kit for Python. It allows you to easily access to HTTP resource and build objects around it."
7 url="http://benoitc.github.com/restkit/index.html"
10 makedepends=('git' 'python2-distribute')
11 provides=('python2-restkit')
12 conflicts=('python2-restkit')
14 _gitroot="http://github.com/benoitc/restkit.git"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
25 git clone $_gitroot $_gitname
28 msg "GIT checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
37 python2 setup.py install --prefix=/usr --root=$pkgdir/ --optimize=1