# Contributor: Fabio Ribeiro # Maintainer: Fabio Ribeiro pkgname=php7-pecl-redis _pkgreal=redis pkgver=4.1.1 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" options="!check" # Need running redis server 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 } 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="f4cc438c81c8b5119889be1004ac1b3ac689554a31ad81516ce50249fa748c225883413da687f15a00279eff0269e5d4c992809f8d88cc49e848def511d3e623 php7-pecl-redis-4.1.1.tgz"