1 #Contributor: Bruno Galeotti <bravox87 at gmail dot com>
2 pkgname=twitty-twister-git
5 pkgdesc='A twisted client for twitter-like APIs.'
6 url='http://github.com/dustin/twitty-twister'
11 conflicts=('twitty-twister' 'twitty-twister-git')
12 replaces=('twitty-twister' 'twitty-twister-git')
13 provides=('twitty-twister')
14 _gitroot='git://github.com/dustin/twitty-twister.git'
15 _gitname='twitty-twister'
22 msg "Connecting to GIT server...."
24 if [ -d "${srcdir}/${_gitname}" ] ; then
25 cd ${_gitname} && git pull --rebase
30 msg "GIT checkout done or server timeout"
32 if [ -d $_gitname-build ]; then
33 msg 'Removing old build directory'
34 rm -rf $_gitname-build
37 msg 'Copying repository to another build directory'
38 cp -r $srcdir/$_gitname $srcdir/$_gitname-build
41 cd $srcdir/$_gitname-build
43 msg 'Running setup.py'
44 python2 setup.py build || return 1
45 python2 setup.py install --root=$pkgdir || return 1