# Maintainer: Bart Ribbers pkgname=qrca pkgver=0_git20200625 pkgrel=0 _commit="3098679f37be8cb0968b17e719dff487957c294f" pkgdesc="QR-Code scanner for Plasma Mobile" arch="all !armhf" # armhf blocked by qt5-qtdeclarative url="https://invent.kde.org/kde/qrca" license="GPL-3.0-or-later" depends="kirigami2 purpose" makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtsvg-dev qt5-qtquickcontrols2-dev qt5-qtmultimedia-dev kirigami2-dev purpose-dev ki18n-dev kcontacts-dev kcoreaddons-dev zxing-cpp-dev" source="https://invent.kde.org/kde/qrca/-/archive/$_commit/qrca-$_commit.tar.gz" builddir="$srcdir/$pkgname-$_commit" 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="b16206ccf81ab5d300326b1078630e17d6913b924225af032c96f9fcf98d4f7b23e2dc81f0d4f3083f967b3326a128f21f1ed055d5a37de20e0c595737f5ae4e qrca-3098679f37be8cb0968b17e719dff487957c294f.tar.gz"