aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2022-06-10 13:15:22 +0300
committerAndy Postnikov <apostnikov@gmail.com>2022-06-10 10:23:03 +0000
commit8d5c80be444533ff252f8c18a961ed4c6ec44e57 (patch)
treed7662af885bd408ac9910d96b1b399ee47fd2008
parent5530cfbddbfd102d81fdd33a75db25acd6d7c36b (diff)
downloadaports-8d5c80be444533ff252f8c18a961ed4c6ec44e57.tar.gz
aports-8d5c80be444533ff252f8c18a961ed4c6ec44e57.tar.bz2
aports-8d5c80be444533ff252f8c18a961ed4c6ec44e57.tar.xz
testing/php82-pecl-redis: new aport
-rw-r--r--testing/php82-pecl-redis/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/php82-pecl-redis/APKBUILD b/testing/php82-pecl-redis/APKBUILD
new file mode 100644
index 0000000000..17ce072c93
--- /dev/null
+++ b/testing/php82-pecl-redis/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
+# Maintainer: Andy Postnikov <apostnikov@gmail.com>
+pkgname=php82-pecl-redis
+_extname=redis
+pkgver=5.3.7
+_pkgver=${pkgver/_rc/RC}
+pkgrel=0
+pkgdesc="PHP 8.1 extension for interfacing with Redis - PECL"
+url="https://pecl.php.net/package/redis"
+arch="all"
+license="PHP-3.01"
+depends="php82-pecl-igbinary php82-session"
+makedepends="php82-dev lz4-dev zstd-dev"
+source="php-pecl-$_extname-$_pkgver.tgz::https://pecl.php.net/get/$_extname-$_pkgver.tgz"
+builddir="$srcdir/$_extname-$_pkgver"
+provides="php82-redis=$pkgver-r$pkgrel" # for backward compatibility
+replaces="php82-redis" # for backward compatibility
+
+build() {
+ phpize82
+ ./configure --prefix=/usr --with-php-config=php-config82 \
+ --enable-redis-igbinary \
+ --enable-redis-lz4 --with-liblz4 \
+ --enable-redis-lzf \
+ --enable-redis-zstd
+ make
+}
+
+check() {
+ # Need running redis server
+ php82 -d extension=modules/$_extname.so --ri $_extname
+}
+
+package() {
+ make INSTALL_ROOT="$pkgdir" install
+
+ local _confdir="$pkgdir"/etc/php82/conf.d
+ mkdir -p $_confdir
+ echo "extension=$_extname" > $_confdir/20_$_extname.ini
+}
+
+sha512sums="
+b945d5aa86d3f58e75094369b0f324e987202f104aca7d7b46ba23cfaed54d186bb66931e200dd16d2dbeea11732dd0311da4e3d7485c3b725027f7924652832 php-pecl-redis-5.3.7.tgz
+"