aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-rdkafka/APKBUILD
blob: aca261bece2bc69ca11509cc99a05a485b516655 (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
33
34
# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Gennady Feldman <gena01@gmail.com>
pkgname=php7-rdkafka
_pkgreal=rdkafka
pkgver=2.0.0
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"
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
}

md5sums="87bce41f61818fd7bc442f71d4c28cde  rdkafka-2.0.0.tgz"
sha256sums="308e62ece5e99751c91acdb0ee12c77e32740f3a07cc87c163beca85e04eb0d9  rdkafka-2.0.0.tgz"
sha512sums="3e8b5581168454b779ffc06fda97d28c40a6f53acad4c5b0a90a3ebb85ad3f0db027ef0d1c6faa712b67b2f4403f3db1ff4d51370261f31034f8e337e5ed2a80  rdkafka-2.0.0.tgz"