# Contributor: Gennady Feldman # Maintainer: Gennady Feldman pkgname=php7-pecl-rdkafka _extname=rdkafka pkgver=6.0.3 pkgrel=1 pkgdesc="A librdkafka bindings for PHP 7 providing a working client for Kafka - PECL" url="https://pecl.php.net/package/rdkafka" arch="all" license="MIT" depends="php7-common" makedepends="php7-dev file librdkafka-dev" source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz" builddir="$srcdir/$_extname-$pkgver" provides="php7-rdkafka=$pkgver-r$pkgrel" # for backward compatibility replaces="php7-rdkafka" # for backward compatibility build() { phpize7 ./configure --prefix=/usr --with-php-config=/usr/bin/php-config7 make } check() { make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff } package() { make INSTALL_ROOT="$pkgdir" install local _confdir="$pkgdir"/etc/php7/conf.d install -d $_confdir echo "extension=$_extname" > $_confdir/$_extname.ini } sha512sums=" 0a40cd24e68360f98c2ad941acae2ced55c13ebe6398274c7c127df18fa0181acb73be32d8eba4b0af3016ab7aead3cda516171ac388b10cd5d70fa3b22ed90d php-pecl-rdkafka-6.0.3.tgz "