1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00
aports/testing/php85-pecl-igbinary/APKBUILD
2025-07-02 18:57:58 +00:00

49 lines
1.6 KiB
Text

# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php85-pecl-igbinary
_extname=igbinary
pkgver=3.2.16
pkgrel=0
pkgdesc="Igbinary is a drop in replacement for the standard PHP 8.5 serializer - PECL"
url="https://pecl.php.net/package/igbinary"
arch="all"
license="BSD-3-Clause"
_phpv=85
_php=php$_phpv
depends="$_php-common"
makedepends="$_php-dev $_php-pecl-apcu"
checkdepends="$_php-session" # sessions needs work https://github.com/igbinary/igbinary/issues/116
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz
fix-test.patch"
builddir="$srcdir/$_extname-$pkgver"
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"
# Tests require extra extensions which are not bundled
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test \
TESTS=--show-diff \
PHP_TEST_SHARED_EXTENSIONS=" \
-d extension=$_modules/apcu.so \
-d extension=$_modules/session.so \
-d extension=modules/$_extname.so"
$_php -d extension="$builddir"/modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/$_php/conf.d
install -d $_confdir
echo "extension=$_extname" > $_confdir/10_$_extname.ini
}
sha512sums="
ad806ad42398e2355b18d7f99da6ac176a8d5de829cc9d7c0c38a211f4092cafdde80f6fa989dbdc77ea912e054ce88825675c727afd3a6e0d3150b3796a7bcd php-pecl-igbinary-3.2.16.tgz
dabbf960d5889b4c4aa468c2e7b6e35be582168c88dff908258801be4b191c70c9796946c2c5c42d771ca801f2f9c8e8f669d7c821eeae9ea15cdf9ebd31e528 fix-test.patch
"