1 pkgname=python2-tweepy-git
4 pkgdesc='Twitter api library for python. (forked but 100% compatible)'
5 url='http://github.com/m00n/tweepy'
9 makedepends=('git' 'setuptools')
10 conflicts=('tweepy' 'tweepy-git')
11 replaces=('tweepy' 'tweepy-git')
13 _gitroot='git://github.com/m00n/tweepy.git'
21 msg "Connecting to GIT server...."
23 if [ -d "${srcdir}/${_gitname}" ] ; then
24 cd ${_gitname} && git pull --rebase
29 msg "GIT checkout done or server timeout"
31 if [ -d $_gitname-build ]; then
32 msg 'Removing old build directory'
33 rm -rf $_gitname-build
36 msg 'Copying repository to another build directory'
37 cp -r $srcdir/$_gitname $srcdir/$_gitname-build
40 cd $srcdir/$_gitname-build
42 msg 'Running setup.py'
43 python2 setup.py build || return 1
44 python2 setup.py install --root=$pkgdir || return 1