1 # Contributor: Felipe Morales <hel.sheep@gmail.com>
2 # Based on the packaging of Frank Smit <frank@61924.nl> (redis-py-git on AUR)
3 pkgname=python-redis-git
6 pkgdesc='Redis Python Client'
8 url='http://github.com/algebraic-brain/redis-py'
10 depends=('python' 'redis')
11 makedepends=('git' 'setuptools')
13 md5sums=('f6df3f49a749da1f9e12816eda900b61')
15 _gitroot='git://github.com/algebraic-brain/redis-py.git'
16 _gitname='python-redis'
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 # if we don't clone into python-redis instead of redis-py (as in redis-py-git),
27 # files in the python2 version and the python3 version might mix, I think
28 git clone $_gitroot $_gitname
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
38 python setup.py install --root="$pkgdir" --prefix=/usr || return 1
39 install -D -m644 $startdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE