Commit 673a6751 authored by Nick's avatar Nick Committed by Andy Postnikov
Browse files

testing/php7-pecl-simple-kafka-client: new aport

parent 96114c10
# Maintainer: Nick Chiu <coding.nikazu@gmail.com>
pkgname=php7-pecl-simple-kafka-client
_extname=simple_kafka_client
pkgver=0.1.2
pkgrel=0
pkgdesc="PHP 7 extension for Kafka based on librdkafka - PECL"
url="https://pecl.php.net/package/simple_kafka_client"
arch="all"
license="BSD-3-Clause"
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-simple-kafka-client=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-simple-kafka-client" # 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="
efdc4967b0c134ab49ac8ea3f4509b29eb5c902ef5d6a07ddd3eebf50ab380a601f647b30040bfea9872a0ecfc721d75cd7cb3c2a00d8e8b79b5d303ba8e8150 php-pecl-simple_kafka_client-0.1.2.tgz
"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment