aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zxing-cpp
diff options
context:
space:
mode:
Diffstat (limited to 'testing/zxing-cpp')
-rw-r--r--testing/zxing-cpp/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/zxing-cpp/APKBUILD b/testing/zxing-cpp/APKBUILD
new file mode 100644
index 0000000000..61ad3c71eb
--- /dev/null
+++ b/testing/zxing-cpp/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=zxing-cpp
+pkgver=1.0.5
+pkgrel=0
+arch="all"
+url="https://github.com/nu-book/zxing-cpp"
+pkgdesc="C++ port of ZXing "
+license="Apache-2.0"
+makedepends="cmake"
+source="$pkgname-$pkgver.tar.gz::https://github.com/nu-book/$pkgname/archive/v$pkgver.tar.gz"
+subpackages="$pkgname-dev"
+
+build() {
+ cmake \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBRARY=ON
+ make
+}
+
+check() {
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ DESTDIR="$pkgdir" make install
+}
+
+sha512sums="7d50e3a597aa123ba9a71211b6096e03de71ccd15d408d08dba214df64de14d462f8d7e8a1dd094d59b8438a61f5c5c436c4d0549039c630270d509812967f65 zxing-cpp-1.0.5.tar.gz"