aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGennady Feldman <gena01@gmail.com>2016-09-23 08:35:51 -0400
committerJakub Jirutka <jakub@jirutka.cz>2016-09-29 16:07:38 +0200
commit3ab57271b096e9114ddde9bea2f415f56a59d595 (patch)
tree60a285e4103b6d7a99f571e018754a846c2b0426
parent3ab27ac44244de0dd30c79415812fa6954d4cf3a (diff)
downloadaports-3ab57271b096e9114ddde9bea2f415f56a59d595.tar.bz2
aports-3ab57271b096e9114ddde9bea2f415f56a59d595.tar.xz
testing/php7-rdkafka: new aport
http://pecl.php.net/package/ A librdkafka bindings for PHP7 providing a working client for Kafka 0.8-0.10
-rw-r--r--testing/php7-rdkafka/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/php7-rdkafka/APKBUILD b/testing/php7-rdkafka/APKBUILD
new file mode 100644
index 0000000000..aca261bece
--- /dev/null
+++ b/testing/php7-rdkafka/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Gennady Feldman <gena01@gmail.com>
+# Maintainer: Gennady Feldman <gena01@gmail.com>
+pkgname=php7-rdkafka
+_pkgreal=rdkafka
+pkgver=2.0.0
+pkgrel=0
+pkgdesc="A librdkafka bindings for PHP7 providing a working client for Kafka 0.8-0.10"
+url="http://pecl.php.net/package/$_pkgreal"
+arch="all"
+license="MIT"
+depends=""
+makedepends="php7-dev autoconf file librdkafka-dev"
+source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ cd "$builddir"
+
+ phpize7 || return 1
+ ./configure --prefix=/usr --with-php-config=/usr/bin/php-config7 || return 1
+ make || return 1
+}
+
+package() {
+ cd "$builddir"
+
+ make INSTALL_ROOT="$pkgdir"/ install || return 1
+ install -d "$pkgdir"/etc/php7/conf.d || return 1
+ echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
+}
+
+md5sums="87bce41f61818fd7bc442f71d4c28cde rdkafka-2.0.0.tgz"
+sha256sums="308e62ece5e99751c91acdb0ee12c77e32740f3a07cc87c163beca85e04eb0d9 rdkafka-2.0.0.tgz"
+sha512sums="3e8b5581168454b779ffc06fda97d28c40a6f53acad4c5b0a90a3ebb85ad3f0db027ef0d1c6faa712b67b2f4403f3db1ff4d51370261f31034f8e337e5ed2a80 rdkafka-2.0.0.tgz"