2018-06-07 10:35:08 +03:00

32 lines
991 B
Plaintext

# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=php7-protobuf
_pkgreal=protobuf
pkgver=3.6.0
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"
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="0a2229fe4461e00b114ce8155f56d365dcd408a60d5f5c7cbfe6d6e0b383242b3f780d8b136f38720493ced24f68a0d2237b11934de47bf4a4689569cec22654 protobuf-3.6.0.tgz"