# Contributor: TBK # Maintainer: TBK pkgname=php7-protobuf _pkgreal=protobuf pkgver=3.6.1 pkgrel=1 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" options="!check" # Test suite is not part of pecl release. depends="php7-common" makedepends="php7-dev autoconf libtool" source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz" builddir="$srcdir/$_pkgreal-$pkgver" build() { cd "$builddir" phpize7 ./configure --prefix=/usr --with-php-config=php-config7 make } package() { cd "$builddir" make INSTALL_ROOT="$pkgdir" install install -d "$pkgdir"/etc/php7/conf.d echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini } sha512sums="d061a0031e4819125d8b73b7aca5aa5a112944621409956500b59fb01855f6e8e092fa1c7dbfe3439c0daee7e65b1d915dd9ddf85e13767b99f69987638f2c72 protobuf-3.6.1.tgz"