1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/testing/php8-pecl-igbinary/APKBUILD
2022-11-07 17:12:21 +01:00

44 lines
1.3 KiB
Text

# Contributor: Andy Postnikov <apostnikov@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php8-pecl-igbinary
_extname=igbinary
pkgver=3.2.12
pkgrel=0
pkgdesc="Igbinary is a drop in replacement for the standard PHP 8.0 serializer - PECL"
url="https://pecl.php.net/package/igbinary"
arch="all"
license="BSD-3-Clause"
depends="php8-common"
makedepends="php8-dev php8-pecl-apcu"
checkdepends="php8-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"
builddir="$srcdir/$_extname-$pkgver"
build() {
phpize8
./configure --prefix=/usr --with-php-config=php-config8
make
}
check() {
local _modules="/usr/lib/php8/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"
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/php8/conf.d
install -d $_confdir
echo "extension=$_extname" > $_confdir/10_$_extname.ini
}
sha512sums="
4dfdc5a69b444ce6b51344c497b38ad36fe1ae2c04e9a293f7dcc7a421a44c408e5c56cdebf2088c14ba14d2dbbe5e696592888f76be73bdf2959c2ea7b554fc php-pecl-igbinary-3.2.12.tgz
"