aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2021-11-20 10:46:25 +0200
committerAndy Postnikov <apostnikov@gmail.com>2021-11-20 08:48:42 +0000
commit3ef9e05dca915a37bfc1b8a5d6ddc2d21c83da67 (patch)
treeed8ecb8fe29dca8825ff17be62ac5784c3232de9 /community
parenteec84c0c9129b6b1556783c7074a9c7eab5cebe3 (diff)
downloadaports-3ef9e05dca915a37bfc1b8a5d6ddc2d21c83da67.tar.gz
aports-3ef9e05dca915a37bfc1b8a5d6ddc2d21c83da67.tar.bz2
aports-3ef9e05dca915a37bfc1b8a5d6ddc2d21c83da67.tar.xz
community/php7-pecl-rdkafka: move from testing
Diffstat (limited to 'community')
-rw-r--r--community/php7-pecl-rdkafka/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/php7-pecl-rdkafka/APKBUILD b/community/php7-pecl-rdkafka/APKBUILD
new file mode 100644
index 0000000000..3487489c4d
--- /dev/null
+++ b/community/php7-pecl-rdkafka/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Gennady Feldman <gena01@gmail.com>
+# Maintainer: Gennady Feldman <gena01@gmail.com>
+pkgname=php7-pecl-rdkafka
+_extname=rdkafka
+pkgver=5.0.1
+pkgrel=0
+pkgdesc="A librdkafka bindings for PHP 7 providing a working client for Kafka - PECL"
+url="https://pecl.php.net/package/rdkafka"
+arch="all"
+license="MIT"
+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-rdkafka=$pkgver-r$pkgrel" # for backward compatibility
+replaces="php7-rdkafka" # 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="
+77491caa7a992b703cd8e0cee65b03df90a036c2d8b42428c6d04e97104b56ffc60aad0808dbebceb3873972f1cd73242924ea39caeb32022b14122fdbf0cd76 php-pecl-rdkafka-5.0.1.tgz
+"