# Contributor: Andy Postnikov # Maintainer: Andy Postnikov pkgname=php7-pecl-igbinary _pkgreal=igbinary pkgver=2.0.8 pkgrel=1 pkgdesc="Igbinary is a drop in replacement for the standard php serializer" url="https://pecl.php.net/package/igbinary" arch="all" license="BSD-3-Clause" provides="php7-igbinary=$pkgver-r$pkgrel" # for backward compatibility replaces="php7-igbinary" # for backward compatibility depends="php7-common" makedepends="autoconf php7-dev php7-json re2c" source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz" builddir="$srcdir/$_pkgreal-$pkgver" build() { cd "$builddir" phpize7 ./configure \ --prefix=/usr \ --with-php-config=/usr/bin/php-config7 make } check() { cd "$builddir" # Tests require json extension which is not bundled sed -i 's#PHP_TEST_SHARED_EXTENSIONS = `#PHP_TEST_SHARED_EXTENSIONS = -d extension=/usr/lib/php7/modules/json.so `#' Makefile make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test } package() { cd "$builddir" make INSTALL_ROOT="$pkgdir" install install -d "$pkgdir"/etc/php7/conf.d echo "extension=$_pkgreal.so" > \ "$pkgdir"/etc/php7/conf.d/10_$_pkgreal.ini } sha512sums="9a8d10c99884caabbaa22e97fe9d09864a5088ccf4a63d83021993b9438a59cecbf45d9127a4d19608c19f6f7ccd1f5b4233b6318f4f13f7516076ceac182685 php7-pecl-igbinary-2.0.8.tgz"