summaryrefslogtreecommitdiff
path: root/repo/zeromq
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-06 21:25:48 +0000
committerdavidovski <david@davidovski.xyz>2022-06-06 21:25:48 +0000
commitccc722b7ed330198d82a3cf28ead76d6d107a70a (patch)
tree7611b3cc4f3ca681524fa28b174a0253eb802e0e /repo/zeromq
parent9ee32689f0b57b9e1de6d22c84ce8e3700b6122b (diff)
added java
Diffstat (limited to 'repo/zeromq')
-rw-r--r--repo/zeromq/test-driver.patch11
-rw-r--r--repo/zeromq/zeromq.xibuild38
2 files changed, 49 insertions, 0 deletions
diff --git a/repo/zeromq/test-driver.patch b/repo/zeromq/test-driver.patch
new file mode 100644
index 0000000..f8b7fe3
--- /dev/null
+++ b/repo/zeromq/test-driver.patch
@@ -0,0 +1,11 @@
+--- a/config/test-driver
++++ b/config/test-driver
+@@ -104,7 +104,7 @@
+ trap "st=143; $do_exit" 15
+
+ # Test script is run here.
+-"$@" >$log_file 2>&1
++: "$@" >$log_file 2>&1
+ estatus=$?
+ if test $enable_hard_errors = no && test $estatus -eq 99; then
+ estatus=1
diff --git a/repo/zeromq/zeromq.xibuild b/repo/zeromq/zeromq.xibuild
new file mode 100644
index 0000000..7ff5563
--- /dev/null
+++ b/repo/zeromq/zeromq.xibuild
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+NAME="zeromq"
+DESC="The ZeroMQ messaging library and tools"
+
+MAKEDEPS="util-linux libsodium perl asciidoc xmlto autoconf automake"
+
+PKG_VER=4.3.4
+SOURCE="https://github.com/zeromq/libzmq/releases/download/v$PKG_VER/zeromq-$PKG_VER.tar.gz"
+
+ADDITIONAL="
+test-driver.patch
+"
+
+prepare () {
+ apply_patches
+}
+
+build() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --with-libsodium
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+}
+