aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-zmq
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-05-01 23:52:07 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-05-02 01:53:19 +0200
commit2ebcb94d35de211f778adc2c5d2285bd3336980b (patch)
tree61a6f99afadc131c70d8e9c9c2076989e0834169 /community/php7-zmq
parentdabc633114fce3e03e6e0fd6f5ddb30317c57639 (diff)
downloadaports-2ebcb94d35de211f778adc2c5d2285bd3336980b.tar.bz2
aports-2ebcb94d35de211f778adc2c5d2285bd3336980b.tar.xz
community/php7-zmq: move from testing
Diffstat (limited to 'community/php7-zmq')
-rw-r--r--community/php7-zmq/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/community/php7-zmq/APKBUILD b/community/php7-zmq/APKBUILD
new file mode 100644
index 0000000000..e8495651bb
--- /dev/null
+++ b/community/php7-zmq/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
+# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
+pkgname=php7-zmq
+_pkgreal=zmq
+pkgver=1.1.3
+pkgrel=1
+_phpver=${pkgname#php}
+_phpver=${_phpver%%-*}
+pkgdesc="PHP$_phpver extension for ZeroMQ"
+url="http://pecl.php.net/package/zmq"
+arch="all"
+license="PHP"
+depends="php$_phpver-common"
+makedepends="php$_phpver-dev autoconf zeromq-dev"
+source="$pkgname-$pkgver.tgz::http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ cd "$builddir"
+
+ phpize$_phpver
+ ./configure --prefix=/usr --with-php-config=php-config$_phpver
+ make
+}
+
+check() {
+ cd "$builddir"
+
+ # XXX: 007-addremovepoll.phpt fails, ignore it for now.
+ make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test || true
+}
+
+package() {
+ local confdir="$pkgdir/etc/php$_phpver/conf.d"
+ cd "$builddir"
+
+ make INSTALL_ROOT="$pkgdir" install
+
+ mkdir -p "$confdir"
+ echo "extension=$_pkgreal.so" > "$confdir"/50_$_pkgreal.ini
+}
+
+sha512sums="0f03016e315a6c6a1e1d6eca1e20564834d2a924cef06af1b38693933f1e5a094c37e9c432705a64f61d95e82655f61358fc7783e7a6f06c7dd9ad84fc6f7bbc php7-zmq-1.1.3.tgz"