summaryrefslogtreecommitdiff
path: root/repo/zxing-cpp
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/zxing-cpp
parentd1fc3393cca72e8e432f827f7624e38734fad6dc (diff)
added deps for qemu
Diffstat (limited to 'repo/zxing-cpp')
-rw-r--r--repo/zxing-cpp/zxing-cpp.xibuild28
1 files changed, 28 insertions, 0 deletions
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
+}
+