# Contributor: TBK # Maintainer: TBK pkgname=php7-pecl-protobuf _pkgreal=protobuf pkgver=3.9.2 pkgrel=0 pkgdesc="PHP7 extension: Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data." url="https://pecl.php.net/package/protobuf" arch="all" license="BSD-3-Clause" depends="php7-common" makedepends="php7-dev autoconf libtool" source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz" builddir="$srcdir/$_pkgreal-$pkgver" provides="php7-protobuf=$pkgver-r$pkgrel" # for backward compatibility replaces="php7-protobuf" # for backward compatibility build() { phpize7 ./configure --prefix=/usr --with-php-config=php-config7 make } check() { # Test suite is not a part of pecl release. php7 -d extension="$builddir"/modules/$_pkgreal.so --ri $_pkgreal } package() { make INSTALL_ROOT="$pkgdir" install install -d "$pkgdir"/etc/php7/conf.d echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini } sha512sums="bd191fa35f935fdb18f9c447080e62b9987a119623612335a08f12ca83e87a6e5a8bdf8731715dfc451f8681145a672559eb39e0058017846c9de487d8979c6a protobuf-3.9.2.tgz"