updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / phpredis / PKGBUILD
blob548ed2561305d52692ae5c1761d78ea3b5542554
1 # Maintainer: Patrick Palka <patrick@parcs.ath.cx>
2 # Development: http://closure.ath.cx/aur-dev
4 pkgname=phpredis
5 pkgver=2.1.3
6 pkgrel=1
7 pkgdesc="A PHP extension for Redis"
8 arch=('i686' 'x86_64')
9 url="https://github.com/nicolasff/phpredis"
10 license=('PHP')
11 depends=('php')
12 _ininame="redis.ini"
13 _inifile="etc/php/conf.d/$_ininame"
14 backup=("$_inifile")
15 _filename="$pkgname-$pkgver.tgz"
16 source=("$_filename::https://github.com/nicolasff/$pkgname/tarball/$pkgver")
17 _builddir=*-$pkgname-*
19 build() {
20     cd $_builddir
22     phpize
23     ./configure --prefix=/usr --enable-redis
24     make
25     #make test
28 package() {
29     cd $_builddir
31     make INSTALL_ROOT="$pkgdir" install
32     echo ";extension=redis.so" > "$_ininame"
33     install -vDm644 "$_ininame" "$pkgdir/$_inifile"
36 md5sums=('eb2bee7e42f7a32a38c2a45377f21086')