updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python2-restkit-git / PKGBUILD
blob590c35a1898868a1ec7d796ec9822f97e3da6265
1 # Maintainer: Baptiste Jonglez <zerstorer@free.fr>
2 pkgname=python2-restkit-git
3 pkgver=20110403
4 pkgrel=1
5 pkgdesc="Restkit is an HTTP resource kit for Python. It allows you to easily access to HTTP resource and build objects around it."
6 arch=('any')
7 url="http://benoitc.github.com/restkit/index.html"
8 license=('MIT')
9 depends=('python2')
10 makedepends=('git' 'python2-distribute')
11 provides=('python2-restkit')
12 conflicts=('python2-restkit')
14 _gitroot="http://github.com/benoitc/restkit.git"
15 _gitname="restkit"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
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"
35 package() {
36   cd "$srcdir/$_gitname-build"
37   python2 setup.py install --prefix=/usr --root=$pkgdir/ --optimize=1
38