2019-11-01 10:00:36 +00:00
|
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
|
|
pkgname=qrca
|
2020-06-18 08:53:47 +00:00
|
|
|
pkgver=0_git20200625
|
2020-08-03 07:13:15 +00:00
|
|
|
pkgrel=1
|
2020-06-18 08:53:47 +00:00
|
|
|
_commit="3098679f37be8cb0968b17e719dff487957c294f"
|
2019-11-01 10:00:36 +00:00
|
|
|
pkgdesc="QR-Code scanner for Plasma Mobile"
|
2020-07-30 16:02:20 +00:00
|
|
|
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
|
2019-11-01 10:00:36 +00:00
|
|
|
url="https://invent.kde.org/kde/qrca"
|
|
|
|
license="GPL-3.0-or-later"
|
2020-06-18 08:53:47 +00:00
|
|
|
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"
|
2020-05-20 12:36:30 +00:00
|
|
|
source="https://invent.kde.org/kde/qrca/-/archive/$_commit/qrca-$_commit.tar.gz"
|
2019-11-01 10:00:36 +00:00
|
|
|
builddir="$srcdir/$pkgname-$_commit"
|
|
|
|
|
|
|
|
build() {
|
2020-05-20 12:36:30 +00:00
|
|
|
cmake -B build \
|
|
|
|
-DCMAKE_BUILD_TYPE=None \
|
2019-11-01 10:00:36 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
2020-05-20 12:36:30 +00:00
|
|
|
cmake --build build
|
2019-11-01 10:00:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2020-05-20 12:36:30 +00:00
|
|
|
cd build
|
2020-06-18 08:53:47 +00:00
|
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
2019-11-01 10:00:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-05-20 12:36:30 +00:00
|
|
|
DESTDIR="$pkgdir" cmake --build build --target install
|
2019-11-01 10:00:36 +00:00
|
|
|
}
|
2020-06-18 08:53:47 +00:00
|
|
|
sha512sums="b16206ccf81ab5d300326b1078630e17d6913b924225af032c96f9fcf98d4f7b23e2dc81f0d4f3083f967b3326a128f21f1ed055d5a37de20e0c595737f5ae4e qrca-3098679f37be8cb0968b17e719dff487957c294f.tar.gz"
|