diff options
Diffstat (limited to 'testing/php7-pecl-memcache/APKBUILD')
-rw-r--r-- | testing/php7-pecl-memcache/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/php7-pecl-memcache/APKBUILD b/testing/php7-pecl-memcache/APKBUILD new file mode 100644 index 0000000000..3ee9427c10 --- /dev/null +++ b/testing/php7-pecl-memcache/APKBUILD @@ -0,0 +1,34 @@ +# Maintainer: Andy Postnikov <apostnikov@gmail.com> +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" |