updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / twitty-twister-git / PKGBUILD
blob95933e78db1a91df3aa8b84a7acf532022026053
1 #Contributor: Bruno Galeotti <bravox87 at gmail dot com>
2 pkgname=twitty-twister-git
3 pkgver=20101123
4 pkgrel=1
5 pkgdesc='A twisted client for twitter-like APIs.'
6 url='http://github.com/dustin/twitty-twister'
7 license='custom'
8 arch=('i686' 'x86_64')
9 depends=()
10 makedepends=('git')
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'
16 source=()
17 md5sums=()
19 build() {
20   cd ${srcdir}
22   msg "Connecting to GIT server...."
24   if [ -d "${srcdir}/${_gitname}" ] ; then
25     cd ${_gitname} && git pull --rebase
26   else
27     git clone ${_gitroot}
28   fi
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
35   fi
37   msg 'Copying repository to another build directory'
38   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
39   
40   msg "Starting build"
41   cd $srcdir/$_gitname-build
42   
43   msg 'Running setup.py'
44   python2 setup.py build || return 1
45   python2 setup.py install --root=$pkgdir || return 1