diff options
Diffstat (limited to 'repo/rabbitmq-c')
-rw-r--r-- | repo/rabbitmq-c/rabbitmq-c.xibuild | 29 |
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 +} + |