1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 02:35:23 +03:00
aports/community/php82-pecl-apcu/APKBUILD
2022-12-10 19:38:03 +00:00

44 lines
1.3 KiB
Text

# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php82-pecl-apcu
_extname=apcu
pkgver=5.1.22
pkgrel=0
pkgdesc="PHP 8.2 extension APC User Cache - PECL"
url="https://pecl.php.net/package/apcu"
arch="all"
license="PHP-3.01"
depends="php82-common"
makedepends="php82-dev"
checkdepends="php82-pcntl"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
provides="php82-apcu=$pkgver-r$pkgrel" # for backward compatibility
replaces="php82-apcu" # for backward compatibility
build() {
phpize82
./configure --prefix=/usr --with-php-config=php-config82
make
}
check() {
local _modules=/usr/lib/php82/modules
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test \
PHP_TEST_SHARED_EXTENSIONS=" \
-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/php82/apcu/apc.php
local _confdir="$pkgdir"/etc/php82/conf.d
install -d $_confdir
echo "extension=$_extname" > $_confdir/$_extname.ini
}
sha512sums="
8f2f4292679bc359ea680ecaf397d69de32bf67d57d719a4839a026ab1b96d5ec4725e92c5c0d1972a117a7cd3d3c456a1f4ec03192fda4657e685de60b9e93e php-pecl-apcu-5.1.22.tgz
"