aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2021-03-04 18:07:16 +0200
committerAndy Postnikov <apostnikov@gmail.com>2021-03-04 18:17:45 +0200
commitff3ab54da00097ed192293bdcb3dc213fca8c38e (patch)
tree2c642df21b8e10c68fde76e99d4ea6bc8c16961d
parent16461d1746eb2c63645c32fb28281f6bfdaa3b7f (diff)
downloadaports-ff3ab54da00097ed192293bdcb3dc213fca8c38e.tar.gz
aports-ff3ab54da00097ed192293bdcb3dc213fca8c38e.tar.bz2
aports-ff3ab54da00097ed192293bdcb3dc213fca8c38e.tar.xz
community/php7-pecl-apcu: upgrade to 5.1.20 and modernize
-rw-r--r--community/php7-pecl-apcu/APKBUILD27
1 files changed, 14 insertions, 13 deletions
diff --git a/community/php7-pecl-apcu/APKBUILD b/community/php7-pecl-apcu/APKBUILD
index f8db3d0685..c4cee5de50 100644
--- a/community/php7-pecl-apcu/APKBUILD
+++ b/community/php7-pecl-apcu/APKBUILD
@@ -1,18 +1,18 @@
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=php7-pecl-apcu
-_pkgreal=apcu
-pkgver=5.1.19
-pkgrel=1
-pkgdesc="PHP extension APC User Cache - PECL"
+_extname=apcu
+pkgver=5.1.20
+pkgrel=0
+pkgdesc="PHP 7 extension APC User Cache - PECL"
url="https://pecl.php.net/package/apcu"
arch="all"
license="PHP-3.01"
depends="php7-common"
-makedepends="pcre2-dev php7-dev"
+makedepends="php7-dev"
checkdepends="php7-pcntl php7-session"
-source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
-builddir="$srcdir/$_pkgreal-$pkgver"
+source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
+builddir="$srcdir/$_extname-$pkgver"
provides="php7-apcu=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-apcu" # for backward compatibility
@@ -23,19 +23,20 @@ build() {
}
check() {
- local modules="/usr/lib/php7/modules"
+ local _modules="/usr/lib/php7/modules"
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test \
PHP_TEST_SHARED_EXTENSIONS=" \
- -d extension=$modules/pcntl.so \
- -d extension=modules/$_pkgreal.so"
+ -d extension=$_modules/pcntl.so \
+ -d extension=modules/$_extname.so" TESTS=--show-diff
}
package() {
make INSTALL_ROOT="$pkgdir"/ install
install -D -m644 apc.php "$pkgdir"/usr/share/php7/apcu/apc.php
- install -d "$pkgdir"/etc/php7/conf.d
- echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
+ local _confdir="$pkgdir"/etc/php7/conf.d
+ install -d $_confdir
+ echo "extension=$_extname" > $_confdir/$_extname.ini
}
-sha512sums="45077e3bd0eac207539e2eafe21968c71f49b8c8920168dbafa87961b041f1d348b6bf1c130104744bc541e1f690854f0a29062e9520db81c04edeee3ef2ed99 apcu-5.1.19.tgz"
+sha512sums="3e10b7e5dc7481b1250610ef83954875f427b9114d6b232bad9064fc33d8c8906bcc317f94a6cfc9f76c720fa06a44270d259cf2ceef6c1ec9dcadc49254ee1b php-pecl-apcu-5.1.20.tgz"