From 6ba6b0aae1d5cecaf8f59e1af53cd64349821c96 Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Fri, 1 Nov 2019 11:00:36 +0100 Subject: [PATCH] kde/qrca: new aport (!714) [ci:skip-build]: already built successfully in CI --- kde/qrca/APKBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 kde/qrca/APKBUILD diff --git a/kde/qrca/APKBUILD b/kde/qrca/APKBUILD new file mode 100644 index 000000000..e4878f114 --- /dev/null +++ b/kde/qrca/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Bart Ribbers +# Maintainer: Bart Ribbers +pkgname=qrca +pkgver=0_git20191031 +pkgrel=0 +_commit="72a599eafeadb14e1a547bac128e9e9b7c38ba52" +pkgdesc="QR-Code scanner for Plasma Mobile" +arch="all" +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" +source="$pkgname-$_commit.tar.gz::https://invent.kde.org/kde/qrca/-/archive/$_commit.tar.gz" +options="!check" # No tests +builddir="$srcdir/$pkgname-$_commit" + +prepare() { + default_prepare + + mkdir "$builddir"/build +} + +build() { + cd "$builddir"/build + cmake "$builddir" \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + make +} + +check() { + cd "$builddir"/build + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir"/build + DESTDIR="$pkgdir" make install +} +sha512sums="4d6646d60aeec699583d56848c338799f5c77e221809aaf5ccbae518660e927b119558ca7ddccd4effdd9467b3c34222b1b560c53c82d8e103a187806a0d1393 qrca-72a599eafeadb14e1a547bac128e9e9b7c38ba52.tar.gz"