updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / redis-py-git / PKGBUILD
blob0dc9d5e2d6bbcaed1b4e440f39e465f6567a5fe7
1 # Contributor: Frank Smit <frank@61924.nl>
2 pkgname=redis-py-git
3 pkgver=20100305
4 pkgrel=2
5 pkgdesc='Redis Python Client'
6 arch=(any)
7 url='http://github.com/andymccurdy/redis-py'
8 license=('MIT')
9 depends=('python2' 'redis')
10 makedepends=('git' 'setuptools')
11 source=('LICENSE')
12 md5sums=('f6df3f49a749da1f9e12816eda900b61')
14 _gitroot='git://github.com/andymccurdy/redis-py.git'
15 _gitname='redis-py'
17 build() {
18     cd "$srcdir"
19     msg "Connecting to GIT server...."
21     if [ -d $_gitname ] ; then
22         cd $_gitname && git pull origin
23         msg "The local files are updated."
24     else
25         git clone $_gitroot
26     fi
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