aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/php-zmq/APKBUILD32
-rw-r--r--testing/php-zmq/zmq.ini2
2 files changed, 34 insertions, 0 deletions
diff --git a/testing/php-zmq/APKBUILD b/testing/php-zmq/APKBUILD
new file mode 100644
index 0000000000..01aa3a52f2
--- /dev/null
+++ b/testing/php-zmq/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: V.Krishn <vkrishn4@gmail.com>
+# Maintainer:
+pkgname=php-zmq
+pkgver=1.0.5
+pkgrel=1
+pkgdesc="ZeroMQ for PHP"
+url="https://github.com/mkoppanen/php-zmq"
+arch="all"
+license="PHP"
+depends="php libzmq"
+makedepends="php-dev autoconf zeromq-dev"
+subpackages=""
+source="saveas-https://github.com/mkoppanen/php-zmq/archive/1.0.5.tar.gz/$pkgname-$pkgver.tar.gz
+zmq.ini"
+_builddir="$srcdir/php-zmq-$pkgver"
+
+build() {
+ cd "$_builddir"
+ phpize || return 1
+ ./configure --enable-zmq \
+ --with-php-config=/usr/bin/php-config
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make INSTALL_ROOT=$pkgdir install || return 1
+ install -D -m644 "$srcdir"/zmq.ini "$pkgdir"/etc/php/conf.d/zmq.ini
+}
+
+md5sums="06e36323b8af330b7aa137cbc3cbe6a4 php-zmq-1.0.5.tar.gz
+976eb10e2fb904e342ed3036fb3fc433 zmq.ini"
diff --git a/testing/php-zmq/zmq.ini b/testing/php-zmq/zmq.ini
new file mode 100644
index 0000000000..da8d25f61c
--- /dev/null
+++ b/testing/php-zmq/zmq.ini
@@ -0,0 +1,2 @@
+;[zmq]
+;extension=zmq.so