1 # Contributor: Frank Smit <frank@61924.nl>
5 pkgdesc='Redis Python Client'
7 url='http://github.com/andymccurdy/redis-py'
9 depends=('python2' 'redis')
10 makedepends=('git' 'setuptools')
12 md5sums=('f6df3f49a749da1f9e12816eda900b61')
14 _gitroot='git://github.com/andymccurdy/redis-py.git'
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
28 msg "GIT checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
35 python2 setup.py install --root="$pkgdir" --prefix=/usr || return 1
36 install -D -m644 $startdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE