mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 05:57:14 +02:00
The version is old but has 30% usage and will be maintained one more year
reverts 514075c652
49 lines
1.4 KiB
Text
49 lines
1.4 KiB
Text
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
|
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php81-pecl-apcu
|
|
_extname=apcu
|
|
pkgver=5.1.24
|
|
pkgrel=0
|
|
pkgdesc="PHP 8.1 extension APC User Cache - PECL"
|
|
url="https://pecl.php.net/package/apcu"
|
|
arch="all"
|
|
license="PHP-3.01"
|
|
_phpv=81
|
|
_php=php$_phpv
|
|
depends="$_php-common"
|
|
makedepends="$_php-dev"
|
|
checkdepends="$_php-pcntl"
|
|
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
|
|
builddir="$srcdir/$_extname-$pkgver"
|
|
provides="$_php-apcu=$pkgver-r$pkgrel" # for backward compatibility
|
|
replaces="$_php-apcu" # for backward compatibility
|
|
|
|
install_if="php-$_extname php$_phpv"
|
|
|
|
build() {
|
|
phpize$_phpv
|
|
./configure --prefix=/usr --with-php-config=php-config$_phpv
|
|
make
|
|
}
|
|
|
|
check() {
|
|
local _modules=/usr/lib/$_php/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
|
|
$_php -d extension="$builddir"/modules/$_extname.so --ri $_extname
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
install -D -m644 apc.php "$pkgdir"/usr/share/$_php/apcu/apc.php
|
|
|
|
local _confdir="$pkgdir"/etc/$_php/conf.d
|
|
install -d $_confdir
|
|
echo "extension=$_extname" > $_confdir/$_extname.ini
|
|
}
|
|
|
|
sha512sums="
|
|
771c0551feb35bf64bc07a7a2c60c9b549009a252f4f158fbc83c7d77f4119d84291a1128302a350042d83879dcb38a445672ce115d8c14b969b51f423a446fa php-pecl-apcu-5.1.24.tgz
|
|
"
|