aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-rdkafka/APKBUILD
blob: 101d417c740ee4edbea1608fe9b44ef7992918ea (plain)
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
# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Gennady Feldman <gena01@gmail.com>
pkgname=php7-rdkafka
_pkgreal=rdkafka
pkgver=3.0.3
pkgrel=0
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"
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	cd "$builddir"

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

package() {
	cd "$builddir"

	make INSTALL_ROOT="$pkgdir"/ install || return 1
	install -d "$pkgdir"/etc/php7/conf.d || return 1
	echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
}

sha512sums="07cadc73dd744a02292d095fd58743fc54f60bfef7c95306a6bf7ea54c7fe0f5373ac1e70af473212e3e2b02cf4abab1923794e18dd1a424ccd4230011e32480  rdkafka-3.0.3.tgz"