aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-pecl-protobuf/APKBUILD
blob: aa470a4d14641c61de983db8414eabda58017353 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=php7-pecl-protobuf
_extname=protobuf
pkgver=3.18.0
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="
b7455cf541bf3f728e6970606b8293826336984f020e33c8c1b03b6f5cc5402720a4c236468946b6c03f77d0f9d521d5495c5817563d431bb1cb5aa64ebd8113  php-pecl-protobuf-3.18.0.tgz
"