updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / python2-tweepy-git / PKGBUILD
blobdcd8e5011ec7598a7209bf450ef3b16083651aa9
1 pkgname=python2-tweepy-git
2 pkgver=20100216
3 pkgrel=3
4 pkgdesc='Twitter api library for python. (forked but 100% compatible)'
5 url='http://github.com/m00n/tweepy'
6 license='custom'
7 arch=('i686' 'x86_64')
8 depends=()
9 makedepends=('git' 'setuptools')
10 conflicts=('tweepy' 'tweepy-git')
11 replaces=('tweepy' 'tweepy-git')
12 provides=('tweepy')
13 _gitroot='git://github.com/m00n/tweepy.git'
14 _gitname='tweepy'
15 source=()
16 md5sums=()
18 build() {
19   cd ${srcdir}
21   msg "Connecting to GIT server...."
23   if [ -d "${srcdir}/${_gitname}" ] ; then
24     cd ${_gitname} && git pull --rebase
25   else
26     git clone ${_gitroot}
27   fi
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
34   fi
36   msg 'Copying repository to another build directory'
37   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
38   
39   msg "Starting build"
40   cd $srcdir/$_gitname-build
41   
42   msg 'Running setup.py'
43   python2 setup.py build || return 1
44   python2 setup.py install --root=$pkgdir || return 1