1 # contributor: Martin Thurau <martin.thurau at gmail.com>
2 pkgname=python-twitter-svn
5 pkgdesc="A python wrapper around the Twitter API."
7 url="http://code.google.com/p/python-twitter/"
9 depends=('python>=2.5' 'python-simplejson')
10 makedepends=(subversion)
11 provides=(python-twitter)
12 conflicts=(python-twitter)
14 md5sums=('a77f25e7b7a936ad13028ba95a2cab32')
16 _svntrunk="http://python-twitter.googlecode.com/svn/trunk/"
17 _svnmod=python-twitter
21 msg "Connecting to SVN server...."
22 if [ -d $_svnmod/.svn ]; then
23 (cd $_svnmod && svn up -r $pkgver)
25 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28 msg "SVN checkout done or server timeout"
34 msg "Build and install..."
35 python setup.py build || return 1
36 python setup.py install --prefix=/usr --root="$pkgdir" || return 1