# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=plasma-workspace pkgver=5.27.6 pkgrel=0 pkgdesc="KDE Plasma Workspace" # armhf blocked by extra-cmake-modules arch="all !armhf" url="https://kde.org/plasma-desktop/" license="(GPL-2.0-only OR GPL-3.0-only) AND LGPL-2.1-or-later AND GPL-2.0-or-later AND MIT AND LGPL-2.1-only AND LGPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only) AND LGPL-2.0-only" depends=" accountsservice fprintd kactivitymanagerd kded kinit kio-extras kirigami2 kquickcharts kwin milou pipewire-session-manager plasma-integration qt5-qtquickcontrols qt5-qttools tzdata " depends_dev=" appstream-dev baloo-dev gpsd-dev iso-codes-dev kactivities-stats-dev kcmutils-dev kcoreaddons-dev kcrash-dev kdbusaddons-dev kdeclarative-dev kded-dev kdelibs4support-dev kdesu-dev kglobalaccel-dev kholidays-dev ki18n-dev kidletime-dev kitemmodels-dev kjsembed-dev knewstuff-dev knotifyconfig-dev kpackage-dev kpeople-dev krunner-dev kscreenlocker-dev ktexteditor-dev ktextwidgets-dev kuserfeedback-dev kwallet-dev kwayland-dev kwin-dev layer-shell-qt-dev libkexiv2-dev libkscreen-dev libksysguard-dev libqalculate-dev networkmanager-qt-dev phonon-dev plasma-framework-dev prison-dev wayland-protocols zlib-dev " makedepends="$depends_dev extra-cmake-modules kdoctools-dev libxtst-dev samurai " checkdepends="xvfb-run" case "$pkgver" in *.90*) _rel=unstable;; *) _rel=stable;; esac subpackages="$pkgname-dbg $pkgname-dev $pkgname-libs $pkgname-doc $pkgname-lang $pkgname-zsh-completion" source="https://download.kde.org/$_rel/plasma/$pkgver/plasma-workspace-$pkgver.tar.xz" replaces="plasma-desktop<5.24 breeze<5.22.90" build() { # reduce size of debug syms CFLAGS="$CFLAGS -O2 -g1" CXXFLAGS="$CXXFLAGS -O2 -g1" \ cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DPLASMA_WAYLAND_DEFAULT_SESSION=TRUE cmake --build build } check() { cd build # nightcolortest requires running dbus # testdesktop, lookandfeel-kcmTest, test_kio_fonts, servicerunnertest systemtraymodeltest are broken # tst_triangleFilter requires plasma-workspace to be installed # locationsrunnertest requires a running Wayland environment local skipped_tests="(" local tests=" nightcolortest testdesktop lookandfeel-kcmTest test_kio_fonts servicerunnertest systemtraymodeltest tst_triangleFilter locationsrunnertest " case "$CARCH" in arm*|aarch64|ppc64le) tests="$tests calculatorrunnertest" ;; esac for test in $tests; do skipped_tests="$skipped_tests|$test" done skipped_tests="$skipped_tests)" CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "$skipped_tests" } package() { DESTDIR="$pkgdir" cmake --install build # We don't ship systemd rm -r "$pkgdir"/usr/lib/systemd } sha512sums=" 090c65ecb1664d5e55d52ff7a11e6402a2b9bb7a31c99fe3406c2c4111aada6102aaf3f5a110c6a13223e88ee164caf209d859fcb6823b638ca42bcbb683984d plasma-workspace-5.27.6.tar.xz "