summaryrefslogtreecommitdiff
path: root/repo/rabbitmq-c
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
committerdavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
commitd2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch)
tree684a17eebf446aa1adab1097616f1882c8d51568 /repo/rabbitmq-c
parentd1fc3393cca72e8e432f827f7624e38734fad6dc (diff)
added deps for qemu
Diffstat (limited to 'repo/rabbitmq-c')
-rw-r--r--repo/rabbitmq-c/rabbitmq-c.xibuild29
1 files changed, 29 insertions, 0 deletions
diff --git a/repo/rabbitmq-c/rabbitmq-c.xibuild b/repo/rabbitmq-c/rabbitmq-c.xibuild
new file mode 100644
index 0000000..996fd53
--- /dev/null
+++ b/repo/rabbitmq-c/rabbitmq-c.xibuild
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+NAME="rabbitmq-c"
+DESC="RabbitMQ C client"
+
+MAKEDEPS="popt openssl cmake xmlto doxygen ninja"
+
+PKG_VER=0.11.0
+SOURCE="https://github.com/alanxz/rabbitmq-c/archive/v$PKG_VER.tar.gz"
+
+build() {
+ cmake -B build -G Ninja \
+ -DCMAKE_BUILD_TYPE=MinSizeRel \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ -DBUILD_STATIC_LIBS=ON \
+ -DBUILD_SHARED_LIBS=ON \
+ -DENABLE_SSL_SUPPORT=ON \
+ -DBUILD_TESTS=ON \
+ -DBUILD_TOOLS=ON
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$PKG_DEST" cmake --build build --target install
+ rm -f "$PKG_DEST"/usr/lib/*.a
+}
+