updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python2-cloudfiles-git / PKGBUILD
blobb6637daecdc51306fdd5ee1b783e3c4a79b8b002
1 # Contributor: Philip Wrenn <philwrenn@gmail.com>
2 pkgname=python2-cloudfiles-git
3 pkgver=20110918
4 pkgrel=1
5 pkgdesc="Python language bindings for Cloud Files API"
6 arch=('i686' 'x86_64')
7 url="http://www.rackspacecloud.com/"
8 license=('GPL')
9 depends=('python2')
10 makedepends=('git python2-distribute')
11 optdepends=()
12 provides=('python2-cloudfiles-git')
13 replaces=('python-cloudfiles-git')
15 _gitroot="git://github.com/rackspace/python-cloudfiles.git"
16 _gitname="python-cloudfiles"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server..."
22   if [-d $_gitname] ; then
23     cd $_gitname && git pull origin
24     msg "Local repository has been updated"
25   else
26     git clone $_gitroot
27   fi
29   rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   
32   cd "$srcdir/$_gitname-build"
33   python2 setup.py install --root="$pkgdir" || return 1
36 # vim:set ts=2 sw=2 et: