updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / hiredis-git / PKGBUILD
blobff930ee4f49ebe67ce01eb55d739d293fb8e4ab3
1 # Maintainer: Brian Knox <taotetek at gmail>
3 pkgname=hiredis-git
4 pkgver=20101203
5 pkgrel=1
6 pkgdesc="Minimalistic C client for Redis >= 1.2"
7 arch=('i686' 'x86_64')
8 url="http://github.com/antirez/hiredis/"
9 license=('BSD')
10 depends=('gcc-libs')
11 makedepends=('git make')
12 conflicts=('hiredis')
13 provides=('hiredis')
14 _gitroot="git://github.com/antirez/hiredis.git"
15 _gitname="hiredis"
16 unset CFLAGS
18 build() {
19   cd "$srcdir"
20   msg "Connecting to Git server...."
22   if [ -d $_gitname ]; then
23     pushd $_gitname && git pull origin && popd
24     msg "The local files are updated"
25   else
26     git clone $_gitroot
27   fi
29   msg "Git checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf $_gitname-build
33   git clone $_gitname $_gitname-build
34   cd $_gitname-build
37 package() {
38   cd "$srcdir/$_gitname-build"
39   make PREFIX="$pkgdir/usr" install
40   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$_gitname/COPYING"