diff --git a/srcpkgs/php-redis b/srcpkgs/php-redis new file mode 120000 index 00000000000000..fa557ad95d0aa1 --- /dev/null +++ b/srcpkgs/php-redis @@ -0,0 +1 @@ +php \ No newline at end of file diff --git a/srcpkgs/php/template b/srcpkgs/php/template index 16d392f66f24c3..d04d1369746fd5 100644 --- a/srcpkgs/php/template +++ b/srcpkgs/php/template @@ -1,7 +1,7 @@ # Template file for 'php' pkgname=php version=8.3 -revision=1 +revision=2 build_style=meta depends="php${version}" short_desc="Meta package for PHP" @@ -161,6 +161,12 @@ php-mongodb_package() { short_desc="PHP MongoDB driver meta package" } +php-redis_package() { + depends="php${version}-redis" + build_style=meta + short_desc="PHP Redis extension meta package" +} + xdebug_package() { depends="xdebug${version}" build_style=meta diff --git a/srcpkgs/php8.3-redis/files/README.voidlinux b/srcpkgs/php8.3-redis/files/README.voidlinux new file mode 100644 index 00000000000000..2a9de04b421e15 --- /dev/null +++ b/srcpkgs/php8.3-redis/files/README.voidlinux @@ -0,0 +1,3 @@ +To enable the Redis extension add the following line to your php.ini: + + extension=redis diff --git a/srcpkgs/php8.3-redis/template b/srcpkgs/php8.3-redis/template new file mode 100644 index 00000000000000..c6331d3a67074a --- /dev/null +++ b/srcpkgs/php8.3-redis/template @@ -0,0 +1,27 @@ +# Template file for 'php8.3-redis' +pkgname=php8.3-redis +version=6.0.2 +revision=1 +build_style=gnu-configure +configure_args="--with-php-config=/usr/bin/php-config8.3" +hostmakedepends="php8.3-devel autoconf pkg-config" +makedepends="php8.3-devel" +depends="php8.3" +short_desc="PHP extension for Redis" +maintainer="Joel Beckmeyer " +license="PHP-3.01" +homepage="https://pecl.php.net/package/redis" +distfiles="https://pecl.php.net/get/redis-$version.tgz" +checksum=01aeccb0e14f897fe56f0509be6e6991ff0ad459f9d34e95e4556d02699b9a03 + +pre_configure() { + phpize8.3 +} + +pre_install() { + make_install_args="INSTALL_ROOT=$DESTDIR" +} + +post_install() { + vdoc $FILESDIR/README.voidlinux +} diff --git a/srcpkgs/php8.3-redis/update b/srcpkgs/php8.3-redis/update new file mode 100644 index 00000000000000..fb47044a964d56 --- /dev/null +++ b/srcpkgs/php8.3-redis/update @@ -0,0 +1 @@ +pattern=')'