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

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

parent 673a6751
# Maintainer: Nick Chiu <coding.nikazu@gmail.com>
pkgname=php8-pecl-simple-kafka-client
_extname=simple_kafka_client
pkgver=0.1.2
pkgrel=0
pkgdesc="PHP 8 extension for Kafka based on librdkafka - PECL"
url="https://pecl.php.net/package/simple_kafka_client"
arch="all"
license="BSD-3-Clause"
depends="php8-common"
makedepends="php8-dev file librdkafka-dev"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
build() {
phpize8
./configure --prefix=/usr --with-php-config=/usr/bin/php-config8
make
}
check() {
php8 -dextension=modules/$_extname.so --ri $_extname
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/php8/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