# Contributor: Fabio Ribeiro # Maintainer: Andy Postnikov pkgname=php82-pecl-msgpack _extname=msgpack pkgver=2.2.0 pkgrel=0 pkgdesc="PHP 8.2 extension provides API for communicating with MessagePack serialization - PECL" url="https://pecl.php.net/package/msgpack" arch="all" license="BSD-3-Clause" _phpv=82 _php=php$_phpv depends="$_php-session $_php-sockets" makedepends="$_php-dev" checkdepends="$_php-pecl-apcu" source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz" builddir="$srcdir"/$_extname-$pkgver provides="php-msgpack=$pkgver-r$pkgrel" # for backward compatibility replaces="php-msgpack" # for backward compatibility install_if="php-$_extname php$_phpv" build() { phpize$_phpv ./configure --prefix=/usr --with-php-config=php-config$_phpv make } check() { rm -f tests/034.phpt # XFAIL https://github.com/msgpack/msgpack-php/issues/136 rm -f tests/035.phpt # fails on ppc64le as of slow environment https://github.com/msgpack/msgpack-php/issues/123 # Tests require session and sockets extensions which are not bundled local _depsdir=/usr/lib/$_php/modules make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test PHP_TEST_SHARED_EXTENSIONS=" -d extension=$_depsdir/apcu.so \ -d extension=$_depsdir/session.so \ -d extension=$_depsdir/sockets.so \ -d extension=modules/$_extname.so" TESTS=--show-diff } package() { make INSTALL_ROOT="$pkgdir" install local _confdir="$pkgdir"/etc/$_php/conf.d install -d $_confdir echo "extension=$_extname" > $_confdir/10_$_extname.ini } sha512sums=" 91cb45e79b78624938ddabce39327a093d668a875fad6e2ce55058e54a742a3a35ea58069446399425816613ebdf5fc503222555b9296a22879d2b7eb475b8c9 php-pecl-msgpack-2.2.0.tgz "