updated on Thu Jan 12 20:00:29 UTC 2012
[aur-mirror.git] / python-twitter-hg / PKGBUILD
blob0e3d516408d7029e5660779ae0cf00a545b4bb6f
1 # Maintainer: Mark Buck <m_buck@hotmail.com>
2 pkgname=python-twitter-hg
3 pkgver=241
4 pkgrel=1
5 arch=('any')
6 pkgdesc="A python wrapper around the Twitter API."
7 url="http://code.google.com/p/$pkgname/"
8 license=('APACHE')
9 depends=('python-simplejson' 'python2-oauth2' 'python2-httplib2')
10 optdepends=()
11 makedepends=('python2' 'mercurial')
12 install=
13 source=()
14 md5sums=()
16 _hgroot="http://python-twitter.googlecode.com/hg/"
17 _hgrepo="python-twitter"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to Mercurial server...."
23   if [ -d $_hgrepo ] ; then
24     cd $_hgrepo
25     hg pull -u || return 1
26     msg "The local files are updated."
27   else
28     hg clone $_hgroot $_hgrepo || return 1
29   fi
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"
38 package() {
39   cd "$srcdir/$_hgrepo-$pkgver"
40   python2 setup.py install --root="$pkgdir/" --optimize=1