1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/community/php7-pecl-protobuf/APKBUILD
2021-05-24 22:21:49 +00:00

38 lines
1.2 KiB
Text

# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=php7-pecl-protobuf
_extname=protobuf
pkgver=3.17.1
pkgrel=0
pkgdesc="PHP 7 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="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$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=modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/php7/conf.d
install -d $_confdir
echo "extension=$_extname" > $_confdir/$_extname.ini
}
sha512sums="
5b0d940fa8e5897fa5c8506b685ad739d02a0d217e5ffd15423cd2614e09618003889d5d095677fe4c71c91dfdab40823d4ba1d750666a2572547562843d78a5 php-pecl-protobuf-3.17.1.tgz
"