aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-msgpack/APKBUILD
blob: f7cbc160a68f80bf87384c77900c89015a157f8e (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: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-msgpack
_pkgreal=msgpack
pkgver=2.0.2
pkgrel=4
pkgdesc="This extension provide API for communicating with MessagePack serialization."
url="https://pecl.php.net/package/$_pkgreal"
arch="all"
license="PHP"
options="!check" # Tests fail - does not load msgpack.so
depends="php7-session"
makedepends="php7-dev autoconf"
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/50_$_pkgreal.ini
}

sha512sums="8168d3836a8ce3a0f6ed5cc25b43f3cf3462f1da63c37a90eb366f7a65a3261779d800be0de4cc486684ba3fb3638f9c028368e4b9dc1c81e0ba976906ee0b38  msgpack-2.0.2.tgz"