# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kscreen pkgver=5.17.2 pkgrel=0 pkgdesc="KDE's screen management software" arch="all" url="https://www.kde.org/workspaces/plasmadesktop/" license="GPL-2.0-or-later AND LGPL-2.1-or-later" depends="hicolor-icon-theme" makedepends="extra-cmake-modules qt5-qtbase-dev kdbusaddons-dev kconfig-dev kconfigwidgets-dev ki18n-dev kxmlgui-dev kglobalaccel-dev kwidgetsaddons-dev kdeclarative-dev kiconthemes-dev plasma-framework-dev libkscreen-dev kcmutils-dev" checkdepends="xvfb-run" source="https://download.kde.org/stable/plasma/$pkgver/kscreen-$pkgver.tar.xz" subpackages="$pkgname-lang" 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 # kscreen-kded-configtest is broken CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "kscreen-kded-configtest" } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="adff340b04793b7f4c76303977e1bee38e7adaaead4f137b75c0873f03188b13cc9ca4f90ac68e6f139e77ead12ca3e785a20ee5851dcd6b7decccd3f5c87785 kscreen-5.17.2.tar.xz"