2025-11-27 21:17:19 +00:00

51 lines
1.5 KiB
Plaintext

# Contributor: Andy Postnikov <apostnikov@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php82-pecl-igbinary
_extname=igbinary
pkgver=3.2.17_rc1
_pkgver=${pkgver/_rc/RC}
pkgrel=0
pkgdesc="Igbinary is a drop in replacement for the standard PHP 8.2 serializer - PECL"
url="https://pecl.php.net/package/igbinary"
arch="all"
license="BSD-3-Clause"
_phpv=82
_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"
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="
e9fe2b8b7d544b79dbdcd23189be501fe1abceede54a4832e474af8185d977ae81a4bbaf27b1787f4fb4406d86745ceaa959e54f736f756fb29f30c7d8380c4c php-pecl-igbinary-3.2.17_rc1.tgz
"