Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

258.18. libplasma-6.8.2

Plasma's library of applets, containments and desktop themes, and its QML components

Version 6.8.2, release 1
Shelf kde — KDE Plasma and Gear platform pieces outside Frameworks that have no other domain: KIO workers, thumbnailers, Plasma integration, KDE Wayland glue
Phase 43_toolkits (Toolkits), 190 of 344 in build order
Licence LGPL-2.0-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-2-Clause AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND (LGPL-3.0-only OR GPL-2.0-or-later) AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL)
Homepage https://invent.kde.org/plasma/libplasma
Build time 4.2 SBU
Installed size 12.8 MiB in 315 files
Recipe ports/core/kde/libplasma/kpkgbuild

About

libplasma is the library every piece of the Plasma shell is built on. It defines applets (plasmoids), the containments that hold them (desktops and panels) and the corona that arranges containments on the screens, and loads them as KPackage packages of QML. Its PlasmaQuick library gives them windows: panels, popups and dialogs. Its QML modules, org.kde.plasma.core, org.kde.plasma.components, org.kde.plasma.extras and org.kde.plasma.plasmoid, are what a plasmoid is written in, and the Plasma style it draws with is a desktop theme of SVG pieces: Breeze, installed under the id default and drawn in the colours of the colour scheme, is installed here with Breeze Light and Breeze Dark, which reuse its SVGs with fixed colours; oxygen adds Oxygen and Air.

plasma-workspace, plasma-desktop, kwin and kdeplasma-addons link it, and so do the Gear applications that ship a widget beside their window, such as kclock and kweather.

Sources

Dependencies

Depends on: cmake, ninja, extra-cmake-modules, gzip, qt6-qtbase, qt6-qtdeclarative, qt6-qtsvg, qt6-qtwayland, qt6-qt5compat, kconfig, kcoreaddons, kglobalaccel, kguiaddons, ki18n, kiconthemes, kio, kwindowsystem, knotifications, kpackage, kirigami, ksvg, kcolorscheme, kwidgetsaddons, plasma-activities, plasma-wayland-protocols, wayland, wayland-protocols.

Required by (30): bluedevil, fcitx5-configtool, kalgebra, kclock, kdeplasma-addons, knights, krohnkite, kscreen, kscreenlocker, kup, kweather, kwin, kwin-effect-kdos-keys, marble, merkuro, milou, oxygen, plasma-desktop, plasma-keyboard, plasma-nm, plasma-pa, plasma-sdk, plasma-vault, plasma-welcome, plasma-workspace, plasmoid-kdos-checklist, plasmoid-kdos-privacy, powerdevil, print-manager, syncthingtray.

Installation

From the repository root, inside the build container, this is the line kdosbuild runs for the port:

script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install libplasma'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/kde/libplasma.

1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.

cd /ports/core/kde/libplasma
echo 'd63a270b5aaba6144c1ddd215d509ff3b350d3d7a0ac08e539d58a043b061b29  libplasma-6.8.2.tar.xz' | sha256sum -c -

2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.

SRC_ROOT=/var/cache/kpkg/work/libplasma
SRC=$SRC_ROOT/libplasma-6.8.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf libplasma-6.8.2.tar.xz -C "$SRC" --strip-components=1

Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.

3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the recipe’s helpers group and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D BUILD_TESTING=OFF \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D KF_SKIP_PO_PROCESSING=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

The switches, and why each is set:

The common switches of each build system are explained in the Flag glossary.

4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/libplasma, prunes what the image does not ship, lints the tree and rolls it reproducibly:

tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
    --mtime=@$SOURCE_DATE_EPOCH \
    --use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
    -cf libplasma-6.8.2-1.tar.xz -C "$PKG" .

5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/libplasma, and runs the triggers its paths call for.

Contents

Installed libraries: libPlasma.so, libPlasmaQuick.so.

Installed directories: /usr/include/Plasma, /usr/include/PlasmaQuick, /usr/lib/cmake/Plasma, /usr/lib/cmake/PlasmaQuick, /usr/lib/qt6/qml/org/kde/kirigami/styles/Plasma, /usr/lib/qt6/qml/org/kde/plasma/components, /usr/lib/qt6/qml/org/kde/plasma/configuration, /usr/lib/qt6/qml/org/kde/plasma/core, /usr/lib/qt6/qml/org/kde/plasma/extras, /usr/lib/qt6/qml/org/kde/plasma/plasmoid, /usr/share/licenses/libplasma, /usr/share/plasma/desktoptheme/breeze-dark, /usr/share/plasma/desktoptheme/breeze-light, /usr/share/plasma/desktoptheme/default/dialogs, /usr/share/plasma/desktoptheme/default/icons, /usr/share/plasma/desktoptheme/default/opaque, /usr/share/plasma/desktoptheme/default/solid, /usr/share/plasma/desktoptheme/default/translucent.

Notes

Upstream’s defaults are the ones KDOS wants, so no other switch is passed. ENABLE_ACTIVITIES is on by default and makes plasma-activities a requirement, so a containment can belong to an activity. GZIP_DESKTOPTHEME_SVG is on by default: the theme’s SVGs are installed compressed as .svgz, made with gzip -n from gzip, which stores no name and no time, so the package is the same on every build. BUILD_EXAMPLES is off by default.

The configure checks for four QML modules it needs at run time and stops when one is missing: Qt5Compat.GraphicalEffects from qt6-qt5compat, org.kde.config from kconfig, org.kde.kirigami from kirigami and org.kde.ksvg from ksvg.

The library uses Qt’s private GUI API, which carries no compatibility promise between Qt releases, so it is rebuilt with every Qt bump; plasmoids are QML and load against whichever release is installed. The plasmoid and wallpaper templates go to /usr/share/kdevappwizard/templates, where KAppTemplate and KDevelop list them.