# Maintainer: Andy Postnikov pkgname=php7-pecl-memcache _pkgreal=memcache pkgver=4.0.5.2 pkgrel=0 pkgdesc="PECL memcache extension, provides handy OO and procedural interfaces, can be used as session handler." url="https://pecl.php.net/package/memcache" arch="all" license="PHP-3.01" depends="php7-session" makedepends="php7-dev autoconf re2c" source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz" builddir="$srcdir/$_pkgreal-$pkgver" provides="php7-memcache=$pkgver-r$pkgrel" # for backward compatibility replaces="php7-memcache" # for backward compatibility build() { phpize7 ./configure --prefix=/usr --with-php-config=php-config7 make } check() { # Tests require memcached server, basic check, see tests/memcache.sh php7 -d extension="$builddir"/modules/$_pkgreal.so --ri $_pkgreal } package() { make INSTALL_ROOT="$pkgdir"/ install install -d "$pkgdir"/etc/php7/conf.d echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini } sha512sums="93e163acf3a6c28f16b5f0982105f6f558cceeb314b3f09ad71655d8a5adf64d23959f1a2f3589eb7e7a7e18c88ba8132014e13f697a737cd570cf9405137384 memcache-4.0.5.2.tgz"