# Contributor: Gennady Feldman # Maintainer: Gennady Feldman pkgname=php7-rdkafka _pkgreal=rdkafka pkgver=3.1.0 pkgrel=0 pkgdesc="A librdkafka bindings for PHP7 providing a working client for Kafka 0.8-0.10" url="https://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="156adee780841ece7283909b863ab5cb5d59e8d0b78715be9523798364acba9132eb871a45e908e138c97d058cd7af1d5dfb5dbe026df719d623af395a730963 rdkafka-3.1.0.tgz"