# Contributor: Fabio Ribeiro # Maintainer: Andy Postnikov pkgname=php81-pecl-memcached _extname=memcached pkgver=3.2.0 pkgrel=3 pkgdesc="PHP 8.1 extension for interfacing with memcached via libmemcached library - PECL" url="https://pecl.php.net/package/memcached" arch="all" license="PHP-3.01" _phpv=81 _php=php$_phpv depends="$_php-session $_php-pecl-igbinary $_php-pecl-msgpack" makedepends="$_php-dev zlib-dev libmemcached-dev cyrus-sasl-dev libevent-dev" source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz" builddir="$srcdir/$_extname-$pkgver" install_if="php-$_extname php$_phpv" build() { phpize$_phpv ./configure \ --prefix=/usr \ --with-php-config=php-config$_phpv \ --enable-memcached-json \ --enable-memcached-igbinary \ --enable-memcached-msgpack \ --enable-memcached-protocol \ --enable-memcached-sasl make } check() { # Tests require memcached server, basic check $_php -d extension="$builddir"/modules/$_extname.so --ri $_extname } package() { make INSTALL_ROOT="$pkgdir" install local _confdir="$pkgdir"/etc/$_php/conf.d mkdir -p $_confdir echo "extension=$_extname" > $_confdir/20_$_extname.ini } sha512sums=" ece5759a9d6d52afd46beb0821811e5d4830e75ad8564af395e2107fd349e271c6e6cf20eeacd9ad15ee2e99ccf0118ccc83c5810e2f3fa7c61f1984b0b26514 php-pecl-memcached-3.2.0.tgz "