1 # Maintainer: Mark Buck <m_buck@hotmail.com>
2 pkgname=python-twitter-hg
6 pkgdesc="A python wrapper around the Twitter API."
7 url="http://code.google.com/p/$pkgname/"
9 depends=('python-simplejson' 'python2-oauth2' 'python2-httplib2')
11 makedepends=('python2' 'mercurial')
16 _hgroot="http://python-twitter.googlecode.com/hg/"
17 _hgrepo="python-twitter"
21 msg "Connecting to Mercurial server...."
23 if [ -d $_hgrepo ] ; then
25 hg pull -u || return 1
26 msg "The local files are updated."
28 hg clone $_hgroot $_hgrepo || return 1
31 msg "Mercurial checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_hgrepo-$pkgver"
35 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-$pkgver"
39 cd "$srcdir/$_hgrepo-$pkgver"
40 python2 setup.py install --root="$pkgdir/" --optimize=1