updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / python2-simplegeo-shared-git / PKGBUILD
blob844b64242d29354716abea234c7cbe50d91d29a0
1 #Maintainer: Gergely Imreh <imrehg(at)gmail(dot)com>
2 pkgname=python2-simplegeo-shared-git
3 pkgver=20110520
4 pkgrel=1
5 pkgdesc="SimpleGeo Python client library, shared components"
6 depends=('python2' 'python-oauth2' 'python2-httplib2' 'python2-ipaddr' 'pyutil' 'python-simplejson')
7 arch=('any')
8 makedepends=('git' 'python2-distribute')
9 install=
10 url="http://simplegeo.com"
11 license=('MIT')
12 provides=('python2-simplegeo-shared')
13 source=()
14 md5sums=()
16 _gitroot=https://github.com/simplegeo/python-simplegeo-shared.git
17 _gitname=python-simplegeo-shared
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