2019-11-01 10:00:36 +00:00
|
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
|
|
pkgname=qrca
|
2020-05-20 12:36:30 +00:00
|
|
|
pkgver=0_git20200408
|
2019-11-01 10:00:36 +00:00
|
|
|
pkgrel=0
|
2020-05-20 12:36:30 +00:00
|
|
|
_commit="4efd1aacd861492b5480173a513cbadaf55b6efd"
|
2019-11-01 10:00:36 +00:00
|
|
|
pkgdesc="QR-Code scanner for Plasma Mobile"
|
2020-01-06 02:30:56 +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"
|
|
|
|
depends="kirigami2"
|
|
|
|
makedepends="extra-cmake-modules qt5-qtbase-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
|
|
|
checkdepends="xvfb-run"
|
|
|
|
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
|
|
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run 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-05-20 12:36:30 +00:00
|
|
|
sha512sums="9c5da05252db7a53bdb14fc77de35d5df7595f2fd38d48bc01b1203927f0e9fb44095791b30dd3c801e83b2e88bf4a46ce88243078fa165c66a88773ea24a66c qrca-4efd1aacd861492b5480173a513cbadaf55b6efd.tar.gz"
|