aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornick <nickjobszh@gmail.com>2021-05-02 08:59:35 +0200
committerAndy Postnikov <apostnikov@gmail.com>2021-05-05 02:23:22 +0300
commit673a675167cdcbe51acbb244d6d48869120b9bbc (patch)
tree55fa762444c8a8c5f5c0c3d532b75d1eacf27d4f
parent96114c10b41828aed2692c2f349a18eed6671115 (diff)
downloadaports-673a675167cdcbe51acbb244d6d48869120b9bbc.tar.gz
aports-673a675167cdcbe51acbb244d6d48869120b9bbc.tar.bz2
aports-673a675167cdcbe51acbb244d6d48869120b9bbc.tar.xz
testing/php7-pecl-simple-kafka-client: new aport
-rw-r--r--testing/php7-pecl-simple-kafka-client/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/php7-pecl-simple-kafka-client/APKBUILD b/testing/php7-pecl-simple-kafka-client/APKBUILD
new file mode 100644
index 0000000000..1418eb32ee
--- /dev/null
+++ b/testing/php7-pecl-simple-kafka-client/APKBUILD
@@ -0,0 +1,37 @@
+# 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
+"