# Contributor: Fabio Ribeiro # Maintainer: Fabio Ribeiro pkgname=php7-pecl-msgpack _pkgreal=msgpack pkgver=2.1.0_beta1 _pkgver=${pkgver/_/} pkgrel=0 pkgdesc="PHP extension provides API for communicating with MessagePack serialization - PECL" url="https://pecl.php.net/package/msgpack" arch="all" license="BSD-3-Clause" depends="php7-session php7-sockets" makedepends="php7-dev autoconf re2c" source="https://pecl.php.net/get/$_pkgreal-$_pkgver.tgz" builddir="$srcdir"/$_pkgreal-$_pkgver provides="php7-msgpack=$pkgver-r$pkgrel" # for backward compatibility replaces="php7-msgpack" # for backward compatibility build() { phpize7 ./configure --prefix=/usr --with-php-config=php-config7 make } check() { rm -f tests/034.phpt # https://github.com/msgpack/msgpack-php/issues/136 rm -f tests/035.phpt # may fail in a slow environment https://github.com/msgpack/msgpack-php/issues/123 # Tests require session and sockets extensions which are not bundled make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test PHP_TEST_SHARED_EXTENSIONS=" -d extension=/usr/lib/php7/modules/session.so \ -d extension=/usr/lib/php7/modules/sockets.so \ -d extension=modules/$_pkgreal.so" } package() { make INSTALL_ROOT="$pkgdir"/ install install -d "$pkgdir"/etc/php7/conf.d echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/50_$_pkgreal.ini } sha512sums="c128e4d5528dcbee37fb11b7f3062aa03f1d721b665e7231d56f30b331fd6a8be3a5adae587847de6a434b27789ea62c62ad9857ac26597e68b640911d8c6900 msgpack-2.1.0beta1.tgz"