mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
# Contributor: TBK <alpine@jjtc.eu>
|
|
# Maintainer: TBK <alpine@jjtc.eu>
|
|
pkgname=php7-pecl-protobuf
|
|
_pkgreal=protobuf
|
|
pkgver=3.10.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"
|
|
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="c996baf95db4908bbd06a533d5ded5e1d9ed700e99604a5609de54dc5b0624235c7776afbb32ae652d182635ada1b80fdb04e0480eb4c6525f53b6b978f9c0e3 protobuf-3.10.0.tgz"
|