aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2020-08-02 23:46:32 +0200
committerBart Ribbers <bribbers@disroot.org>2020-08-02 23:47:42 +0200
commitc3d0e3251f046b47fb0a4b0f7ca3b937d7601cf8 (patch)
tree43b9deb957f65cfa546f54f350a33c2cdb4bb577
parentd519354904a205bb91d25e9b69388adf93a9ad67 (diff)
downloadaports-c3d0e3251f046b47fb0a4b0f7ca3b937d7601cf8.tar.gz
aports-c3d0e3251f046b47fb0a4b0f7ca3b937d7601cf8.tar.bz2
aports-c3d0e3251f046b47fb0a4b0f7ca3b937d7601cf8.tar.xz
community/zxing-cpp: upgrade to 1.1.0 and enable tests
-rw-r--r--community/zxing-cpp/APKBUILD19
1 files changed, 10 insertions, 9 deletions
diff --git a/community/zxing-cpp/APKBUILD b/community/zxing-cpp/APKBUILD
index c2482ad359..74015e186c 100644
--- a/community/zxing-cpp/APKBUILD
+++ b/community/zxing-cpp/APKBUILD
@@ -1,32 +1,33 @@
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=zxing-cpp
-pkgver=1.0.8
-pkgrel=1
+pkgver=1.1.0
+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/zxing-cpp/archive/v$pkgver.tar.gz"
+source="https://github.com/nu-book/zxing-cpp/archive/v$pkgver/zxing-cpp-v$pkgver.tar.gz"
subpackages="$pkgname-dev"
-options="!check" # No tests
build() {
- cmake \
+ cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBRARY=ON
- make
+ cmake --build build
}
check() {
- CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+ cd build
+ # ReaderTest hangs indefinitely https://github.com/nu-book/zxing-cpp/issues/149
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "ReaderTest"
}
package() {
- DESTDIR="$pkgdir" make install
+ DESTDIR="$pkgdir" cmake --build build --target install
}
-sha512sums="0749b3bd4d810ef024f2d8045ecf3024bba6d1816be3f5baeb3325724ac5a7359bec72b4070f8e34fbc1bc5ba2636e488b17cc8b35578b0703352d448c9d22f6 zxing-cpp-1.0.8.tar.gz"
+sha512sums="8ae6d0c2bd21de0af99c1baa470afcdd8b0375eb1d4166bb20ad67632c39ef63e1ea07b8a691cf0bc076c87d73a8d8b0ca05007c65a09bc79697aa294dc1f44f zxing-cpp-v1.1.0.tar.gz"