aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php8-pecl-rdkafka/APKBUILD
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2020-12-07 02:37:04 +0200
committerAndy Postnikov <apostnikov@gmail.com>2021-01-14 15:20:28 +0200
commiteda398082967769626b58b9b65ac6c6f8f0c45a9 (patch)
tree4cab6753061efe9efbdf49491091c6ad50c9f83d /testing/php8-pecl-rdkafka/APKBUILD
parent09276e69ab257f4d2ecfa545ae753eaea9fe6fbd (diff)
downloadaports-eda398082967769626b58b9b65ac6c6f8f0c45a9.tar.gz
aports-eda398082967769626b58b9b65ac6c6f8f0c45a9.tar.bz2
aports-eda398082967769626b58b9b65ac6c6f8f0c45a9.tar.xz
testing/php8-pecl-rdkafka: new aport
Diffstat (limited to 'testing/php8-pecl-rdkafka/APKBUILD')
-rw-r--r--testing/php8-pecl-rdkafka/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/php8-pecl-rdkafka/APKBUILD b/testing/php8-pecl-rdkafka/APKBUILD
new file mode 100644
index 0000000000..5c969b5538
--- /dev/null
+++ b/testing/php8-pecl-rdkafka/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Gennady Feldman <gena01@gmail.com>
+# Maintainer: Andy Postnikov <apostnikov@gmail.com>
+pkgname=php8-pecl-rdkafka
+_extname=rdkafka
+pkgver=5.0.0
+pkgrel=0
+pkgdesc="A librdkafka bindings for PHP 8 providing a working client for Kafka - PECL"
+url="https://pecl.php.net/package/rdkafka"
+arch="all"
+license="MIT"
+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="17d47f036fb1125c4b63ac1c8a1329735a8250d514310d81991a6b202448db37d66c6dd3ae32bf06225f46ad5756c645a138748d36e2c084557661537233fa1b php-pecl-rdkafka-5.0.0.tgz"