From b66546ee6025089555fa2fad0e5164fd76e3e218 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Tue, 15 Mar 2022 15:29:51 -0400 Subject: [PATCH] New package: php8.1-apcu-5.1.21 --- srcpkgs/php8.1-apcu/INSTALL.msg | 3 +++ srcpkgs/php8.1-apcu/template | 29 +++++++++++++++++++++++++++++ srcpkgs/php8.1-apcu/update | 2 ++ 3 files changed, 34 insertions(+) create mode 100644 srcpkgs/php8.1-apcu/INSTALL.msg create mode 100644 srcpkgs/php8.1-apcu/template create mode 100644 srcpkgs/php8.1-apcu/update diff --git a/srcpkgs/php8.1-apcu/INSTALL.msg b/srcpkgs/php8.1-apcu/INSTALL.msg new file mode 100644 index 0000000000..9da8a70ccc --- /dev/null +++ b/srcpkgs/php8.1-apcu/INSTALL.msg @@ -0,0 +1,3 @@ +To enable APCu add the following line to your php.ini: + + extension=apcu.so diff --git a/srcpkgs/php8.1-apcu/template b/srcpkgs/php8.1-apcu/template new file mode 100644 index 0000000000..60d5ca7914 --- /dev/null +++ b/srcpkgs/php8.1-apcu/template @@ -0,0 +1,29 @@ +# Template file for 'php8.1-apcu' +pkgname=php8.1-apcu +version=5.1.21 +revision=1 +wrksrc="apcu-${version}" +build_style=gnu-configure +configure_args="--with-php-config=/usr/bin/php-config8.1" +make_check_target=test +hostmakedepends="autoconf php8.1-devel" +makedepends="php8.1-devel pcre2-devel" +depends="php8.1" +short_desc="In-memory key-value store for PHP" +maintainer="Joel Beckmeyer " +license="PHP-3.01" +homepage="https://pecl.php.net/package/APCu" +distfiles="https://pecl.php.net/get/apcu-${version}.tgz" +checksum=1033530448696ee7cadec85050f6df5135fb1330072ef2a74569392acfecfbc1 + +pre_configure() { + phpize8.1 +} + +pre_install() { + make_install_args="INSTALL_ROOT=$DESTDIR" +} + +post_install() { + rm -r $DESTDIR/usr/include +} diff --git a/srcpkgs/php8.1-apcu/update b/srcpkgs/php8.1-apcu/update new file mode 100644 index 0000000000..ad899519e3 --- /dev/null +++ b/srcpkgs/php8.1-apcu/update @@ -0,0 +1,2 @@ +site="https://pecl.php.net/package/APCu" +pattern="apcu-\K[\d\.]*(?=\.tgz)"