# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com > # Contributor: wolftankk pkgname=php-protobuf pkgver=3.24.4 pkgrel=1 pkgdesc="Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data." url="https://pecl.php.net/package/protobuf" arch=('x86_64' 'i686') license=('BSD-3-Clause') depends=( 'php' 'protobuf' ) backup=('etc/php/conf.d/protobuf.ini') source=( "http://pecl.php.net/get/protobuf-${pkgver}.tgz" ) sha256sums=('46a1cfa2e7680e8ad08d0e0aee6d51588502fb7112b6f2e1388f0f4c6ebf1385') build() { cd "$srcdir/protobuf-$pkgver/" phpize ./configure --prefix=/usr make } package() { cd "$srcdir/protobuf-$pkgver/" make INSTALL_ROOT="$pkgdir" install echo 'extension=protobuf.so' > protobuf.ini install -Dm644 protobuf.ini "$pkgdir/etc/php/conf.d/protobuf.ini" }