Skip to content
Snippets Groups Projects
Commit 88907fa9 authored by TBK's avatar TBK Committed by Andy Postnikov
Browse files

testing/php7-rdkafka: modernize

parent 0d855245
No related branches found
No related tags found
No related merge requests found
......@@ -3,35 +3,37 @@
pkgname=php7-rdkafka
_pkgreal=rdkafka
pkgver=3.0.5
pkgrel=0
pkgrel=1
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"
# http://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 || return 1
./configure --prefix=/usr --with-php-config=/usr/bin/php-config7 || return 1
make || return 1
phpize7
./configure --prefix=/usr --with-php-config=/usr/bin/php-config7
make
}
package() {
check() {
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
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
}
check() {
package() {
cd "$builddir"
make test
make INSTALL_ROOT="$pkgdir"/ install
install -d "$pkgdir"/etc/php7/conf.d
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
}
sha512sums="31d5b032c5d6bfb029328acd2f4ac42adf554137f68f61643cb004db8f596a05ab763e93dae2705c383924b4ecfdac8410708406b84bfe1fd983e8599e534358 rdkafka-3.0.5.tgz"
sha512sums="83bc72106e047b5b2af8f48eccd48ef8a374a8af5440f6aa83aaeadd62c07995b7dc534feb22c2e0183cbb582f72593d3cd02441fca83f85f0795f0d63a84f23 rdkafka-3.0.5.tgz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment