1 # Contributor: Philip Wrenn <philwrenn@gmail.com>
2 pkgname=python2-cloudfiles-git
5 pkgdesc="Python language bindings for Cloud Files API"
7 url="http://www.rackspacecloud.com/"
10 makedepends=('git python2-distribute')
12 provides=('python2-cloudfiles-git')
13 replaces=('python-cloudfiles-git')
15 _gitroot="git://github.com/rackspace/python-cloudfiles.git"
16 _gitname="python-cloudfiles"
20 msg "Connecting to GIT server..."
22 if [-d $_gitname] ; then
23 cd $_gitname && git pull origin
24 msg "Local repository has been updated"
29 rm -rf "$srcdir/$_gitname-build"
30 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32 cd "$srcdir/$_gitname-build"
33 python2 setup.py install --root="$pkgdir" || return 1
36 # vim:set ts=2 sw=2 et: