aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/php8-pecl-memcached/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/php8-pecl-memcached/APKBUILD b/testing/php8-pecl-memcached/APKBUILD
new file mode 100644
index 0000000000..715b4858d7
--- /dev/null
+++ b/testing/php8-pecl-memcached/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
+# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
+pkgname=php8-pecl-memcached
+_extname=memcached
+pkgver=3.1.5
+pkgrel=0
+pkgdesc="PHP extension for interfacing with memcached via libmemcached library - PECL"
+url="https://pecl.php.net/package/memcached"
+arch="all"
+license="PHP-3.01"
+depends="php8-session php8-pecl-igbinary"
+makedepends="php8-dev zlib-dev libmemcached-dev cyrus-sasl-dev"
+source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
+builddir="$srcdir/$_extname-$pkgver"
+
+build() {
+ phpize8
+ ./configure \
+ --prefix=/usr \
+ --with-php-config=php-config8 \
+ --enable-memcached-igbinary \
+ --disable-memcached-sasl
+ make
+}
+
+check() {
+ # Tests require memcached server, basic check
+ php8 -d extension="$builddir"/modules/$_extname.so --ri $_extname
+}
+
+package() {
+ make INSTALL_ROOT="$pkgdir" install
+
+ local _confdir="$pkgdir"/etc/php8/conf.d
+ mkdir -p $_confdir
+ echo "extension=$_extname" > $_confdir/20_$_extname.ini
+}
+
+sha512sums="87d5fd079fcaad81139785d6766da71b23a1a0fe907d4b22f3a787af148a20412c11df11c4d98c165241658baf0d87c8a6b29de15db07a0f9d1fabc8aec8f0e9 php-pecl-memcached-3.1.5.tgz"