aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-protobuf/APKBUILD
blob: 54d7c56e0a191241daff5d1f0b4f73932ba5d81f (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
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=php7-protobuf
_pkgreal=protobuf
pkgver=3.6.1
pkgrel=1
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="d061a0031e4819125d8b73b7aca5aa5a112944621409956500b59fb01855f6e8e092fa1c7dbfe3439c0daee7e65b1d915dd9ddf85e13767b99f69987638f2c72  protobuf-3.6.1.tgz"