# Maintainer: Bart Ribbers pkgname=qrca pkgver=0_git20210401 pkgrel=0 _commit="4078952c38715ca59de3916e308bcd60fee00e34" pkgdesc="QR-Code scanner for Plasma Mobile" arch="all !armhf" # armhf blocked by qt5-qtdeclarative url="https://invent.kde.org/plasma-mobile/qrca" license="GPL-3.0-or-later" depends=" kirigami2 purpose " makedepends=" extra-cmake-modules kcontacts-dev kcoreaddons-dev ki18n-dev kirigami2-dev purpose-dev qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtmultimedia-dev qt5-qtquickcontrols2-dev qt5-qtsvg-dev zxing-cpp-dev " source="https://invent.kde.org/plasma-mobile/qrca/-/archive/$_commit/qrca-$_commit.tar.gz" builddir="$srcdir/$pkgname-$_commit" prepare() { default_prepare # qmlplugindump fails for armv7+qemu (pmb#1970). This is purely for # packager knowledge and doesn't affect runtime, so we can disable it. if [ "$CARCH" = "armv7" ]; then sed -i "s/ecm_find_qmlmodule/# ecm_find_qmlmodule/g" CMakeLists.txt fi } 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 } package() { DESTDIR="$pkgdir" cmake --build build --target install } sha512sums="25f7046e2ef318105ee702fb4a1dc41876cd028f853fc9488e78d4ac92313c5604c4e61d015af9b0813d849d64b3c1d19f533c687e781660a85e52a6768a6fef qrca-4078952c38715ca59de3916e308bcd60fee00e34.tar.gz"