1 # Maintainer: Matthew Bauer <mjbauer95@gmail.com>
2 _realname=google-api-python-client
3 _pkgname=python2-$_realname
7 pkgdesc="Google API Client for Python"
8 url="http://code.google.com/p/$_realname/"
12 makedepends=('python2-distribute' 'mercurial')
13 conflicts=("$_pkgname")
15 _hgroot="https://$_realname.googlecode.com/hg"
20 msg "Connecting to Mercurial server...."
22 if [[ -d "$_hgrepo" ]]; then
25 msg "The local files are updated."
27 hg clone "$_hgroot" "$_hgrepo"
30 msg "Mercurial checkout done or server timeout"
31 msg "Starting build..."
33 rm -rf "$srcdir/$_hgrepo-build"
34 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
35 cd "$srcdir/$_hgrepo-build"
37 python2 setup.py build
41 cd "$srcdir/$_hgrepo-build"
43 python2 setup.py install --root=$pkgdir --optimize=1