aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornick <nickjobszh@gmail.com>2021-05-02 09:00:29 +0200
committerAndy Postnikov <apostnikov@gmail.com>2021-05-05 02:27:39 +0300
commitc1feac82a851cc696b9055e0e6aa59fbcacd4ea6 (patch)
tree2fa7f5dcc40b8be17f65a16dc3ac17bc838cf589
parent673a675167cdcbe51acbb244d6d48869120b9bbc (diff)
downloadaports-c1feac82a851cc696b9055e0e6aa59fbcacd4ea6.tar.gz
aports-c1feac82a851cc696b9055e0e6aa59fbcacd4ea6.tar.bz2
aports-c1feac82a851cc696b9055e0e6aa59fbcacd4ea6.tar.xz
testing/php8-pecl-simple-kafka-client: new aport
-rw-r--r--testing/php8-pecl-simple-kafka-client/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/php8-pecl-simple-kafka-client/APKBUILD b/testing/php8-pecl-simple-kafka-client/APKBUILD
new file mode 100644
index 0000000000..5c603cff75
--- /dev/null
+++ b/testing/php8-pecl-simple-kafka-client/APKBUILD
@@ -0,0 +1,35 @@
+# 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
+"