aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-rdkafka/APKBUILD
blob: 8912e506bb28a375427335aa90350053d08a8674 (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
39
# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Gennady Feldman <gena01@gmail.com>
pkgname=php7-rdkafka
_pkgreal=rdkafka
pkgver=3.0.5
pkgrel=2
pkgdesc="A librdkafka bindings for PHP7 providing a working client for Kafka 0.8-0.10"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="MIT"
depends=""
makedepends="php7-dev autoconf file librdkafka-dev pcre-dev"
# https://pecl.php.net/get/$_pkgreal-$pkgver.tgz does not include the tests
source="$_pkgreal-$pkgver.tgz::https://github.com/arnaud-lb/php-rdkafka/archive/$pkgver.tar.gz"
builddir="$srcdir/php-$_pkgreal-$pkgver"

build() {
	cd "$builddir"

	phpize7
	./configure --prefix=/usr --with-php-config=/usr/bin/php-config7
	make
}

check() {
	cd "$builddir"

	make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
}

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="83bc72106e047b5b2af8f48eccd48ef8a374a8af5440f6aa83aaeadd62c07995b7dc534feb22c2e0183cbb582f72593d3cd02441fca83f85f0795f0d63a84f23  rdkafka-3.0.5.tgz"