updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / python2-simplegeo-git / PKGBUILD
blob2e0de7c190ada92771e33b34290dbe1971a161f7
1 #Maintainer: Gergely Imreh <imrehg(at)gmail(dot)com>
2 pkgname=python2-simplegeo-git
3 pkgver=20110225
4 pkgrel=1
5 pkgdesc="SimpleGeo Python client library"
6 depends=('python2' 'python-oauth2')
7 arch=('any')
8 makedepends=('git' 'python2-distribute')
9 install=
10 url="http://simplegeo.com"
11 license=('MIT')
12 provides=('python2-simplegeo')
13 source=()
14 md5sums=()
16 _gitroot=https://github.com/simplegeo/python-simplegeo.git
17 _gitname=python-simplegeo
19 build() {
20   cd "${srcdir}"
22   if [ -d ${_gitname} ]; then
23     cd "${_gitname}"  || return 1
24     git pull origin || return 1
25     cd ..
26   else
27     git clone ${_gitroot} || return 1
28   fi
30   msg "GIT checkout done or server timeout"
32   cd "${srcdir}/${_gitname}"
33   python2 setup.py install --root "${pkgdir}" || return 1