# Contributor: Fabio Ribeiro # Maintainer: Fabio Ribeiro pkgname=php7-pecl-redis _pkgreal=redis pkgver=4.3.0 pkgrel=1 pkgdesc="PHP extension for interfacing with Redis - PECL" url="https://pecl.php.net/package/redis" arch="all" license="PHP-3.01" depends="php7-common php7-pecl-igbinary php7-session" makedepends="php7-dev autoconf re2c" source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz" builddir="$srcdir/$_pkgreal-$pkgver" provides="php7-redis=$pkgver-r$pkgrel" # for backward compatibility replaces="php7-redis" # for backward compatibility build() { cd "$builddir" phpize7 ./configure --prefix=/usr --with-php-config=php-config7 \ --enable-redis-igbinary make } check() { # Need running redis server php7 -d extension="$builddir"/modules/$_pkgreal.so --ri $_pkgreal } package() { local confdir="$pkgdir/etc/php7/conf.d" cd "$builddir" make INSTALL_ROOT="$pkgdir" install mkdir -p "$confdir" echo "extension=$_pkgreal.so" > "$confdir"/20_$_pkgreal.ini } sha512sums="30ce5863540485463704e6f90cff3a8d1f5bda34360c987e848ab290c8240f323b6eb2df1e90cc4c0922b3413652132d937488943f5db4e242c460c592da54ca php7-pecl-redis-4.3.0.tgz"