Subject: [PATCH v2] testing/discover: new aport

From: Bart Ribbers <[email-masked]>
Date: Sun, 1 Sep 2019 15:15:08 +0200

Can't be used to upgrade the system with apk due to a lack of packagekit, but can be used to update flatpak packages and fwupd
---
 testing/discover/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 testing/discover/APKBUILD

diff --git a/testing/discover/APKBUILD b/testing/discover/APKBUILD
new file mode 100644
index 0000000000..6be95d3dfb
--- /dev/null
+++ b/testing/discover/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Bart Ribbers <[email-masked]>
+# Maintainer: Bart Ribbers <[email-masked]>
+pkgname=discover
+pkgver=5.16.4
+pkgrel=0
+arch="all"
+url="https://userbase.kde.org/Discover"
+pkgdesc="KDE Plasma resources management GUI"
+license="LGPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only) AND GFDL-1.2-only"
+depends="kirigami2"
+makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev kcoreaddons-dev kconfig-dev kcrash-dev kdbusaddons-dev ki18n-dev karchive-dev kxmlgui-dev kitemmodels-dev kio-dev kdeclarative-dev attica-dev knewstuff-dev plasma-framework-dev appstream-dev flatpak-dev"
+if [ "$CARCH" = x86 ] || [ "$CARCH" = x86_64 ]; then
+	makedepends="$makedepends fwupd-dev"
+fi
+checkdepends="xvfb-run"
+source="https://download.kde.org/stable/plasma/$pkgver/discover-$pkgver.tar.xz"
+subpackages="$pkgname-lang"
+
+build() {
+	cmake \
+		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
+		-DCMAKE_INSTALL_PREFIX=/usr \
+		-DCMAKE_INSTALL_LIBDIR=lib
+	make
+}
+
+check() {
+	# knsbackendtest and flatpaktest fail to find their required executables
+	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(knsbackend|flatpak)test"
+}
+
+package() {
+	DESTDIR="$pkgdir" make install
+}
+
+sha512sums="7fe80436f7998d7ae54143377b11dc909c1e14346dea55e7c6a5649331102812dcd69f3eb600a06ab28b83ac6827300a4fc3cbc0afc83187e418c6eef44a0262  discover-5.16.4.tar.xz"
-- 
2.23.0