# Contributor: Andy Postnikov # Maintainer: Andy Postnikov pkgname=php7-pecl-igbinary _pkgreal=igbinary pkgver=3.1.1 pkgrel=0 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 php7-pecl-apcu re2c" source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz" builddir="$srcdir/$_pkgreal-$pkgver" build() { phpize7 ./configure \ --prefix=/usr \ --with-php-config=/usr/bin/php-config7 make } check() { # Tests require json extension which is not bundled make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test \ PHP_TEST_SHARED_EXTENSIONS="-d extension=/usr/lib/php7/modules/json.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/10_$_pkgreal.ini } sha512sums="a52fa2077f7166620fd88ea6c2cf081ca2edbd51a4671b333bd8f4b2b90748a1ab2275a77a78f9688b2261f27ff9840610410e49aae3e04136eb78db1990a8d0 php7-pecl-igbinary-3.1.1.tgz"