From d2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 15 Jun 2022 20:02:02 +0100 Subject: added deps for qemu --- repo/zxing-cpp/zxing-cpp.xibuild | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 repo/zxing-cpp/zxing-cpp.xibuild (limited to 'repo/zxing-cpp/zxing-cpp.xibuild') diff --git a/repo/zxing-cpp/zxing-cpp.xibuild b/repo/zxing-cpp/zxing-cpp.xibuild new file mode 100644 index 0000000..04eccd0 --- /dev/null +++ b/repo/zxing-cpp/zxing-cpp.xibuild @@ -0,0 +1,28 @@ +#!/bin/sh + +NAME="zxing-cpp" +DESC="C++ port of ZXing" + +MAKEDEPS="cmake" + +PKG_VER=1.2.0 +SOURCE="https://github.com/nu-book/zxing-cpp/archive/v$PKG_VER/zxing-cpp-v$PKG_VER.tar.gz" + +build() { + cmake -B build \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + cmake --build build +} + +check() { + cd build + CTEST_OUTPUT_ON_FAILURE=TRUE ctest + cd $BUILD_ROOT +} + +package() { + DESTDIR="$PKG_DEST" cmake --install build +} + -- cgit v1.2.1