# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=discover pkgver=5.16.5 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" checkdepends="xvfb-run" source="https://download.kde.org/stable/plasma/$pkgver/discover-$pkgver.tar.xz" subpackages="$pkgname-lang" case "$CARCH" in x86|x86_64) makedepends="$makedepends fwupd-dev" ;; *) ;; esac build() { cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_DISABLE_FIND_PACKAGE_Snapd=ON 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="69fcfc9f8576dc5933f4e0c36ac25c518e2cd41158c5c171f760a4cd883018a6dd01ffa8984c80e5002830d6b9d706abbb7cedf3d2144317e482404bb821055e discover-5.16.5.tar.xz"