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

333.14. kdepim-addons-26.08.2

Plugins for KDE PIM — message viewer formatters, an ad blocker, editor tools, and calendar events for the Plasma clock

Version 26.08.2, release 1
Shelf pim — Personal information: calendars, contacts, tasks, time tracking, notes and genealogy
Phase 44_apps (Applications), 336 of 422 in build order
Licence GPL-2.0-or-later AND LGPL-2.0-or-later AND GPL-2.0-only AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND GPL-2.0-or-later WITH Qt-Commercial-exception-1.0 AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND (LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND BSD-3-Clause AND MIT AND CC0-1.0 AND MPL-2.0 AND (MIT OR Apache-2.0) AND Apache-2.0 AND Unicode-3.0 AND Zlib AND (Unlicense OR MIT) AND (Apache-2.0 OR BSL-1.0)
Homepage https://invent.kde.org/pim/kdepim-addons
Build time 6.4 SBU
Installed size 11.9 MiB in 120 files
Recipe ports/core/pim/kdepim-addons/kpkgbuild

About

kdepim-addons is the plugin set of the KDE PIM applications. For KMail’s message viewer it adds formatters for vCards, iCalendar invitations, TNEF attachments, Apple Wallet passes, travel itineraries, Markdown and highlighted source, header styles, “create event” and “create to-do” actions, a do-not-track header and an ad blocker; for the composer, editor tools, send checks and grammar checking through LanguageTool and Grammalecte; plus plugins for KOrganizer, KAddressBook, the Sieve editor, KMailTransport, KLDAP and the import wizard. Its pimeventsplugin is how the Plasma Digital Clock shows Akonadi calendar events.

Sources

Dependencies

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtwebengine, kcalendarcore, kcmutils, kcolorscheme, kconfig, kconfigwidgets, kcontacts, kdbusaddons, kdeclarative, kguiaddons, kholidays, ki18n, kiconthemes, kio, kmime, kparts, kxmlgui, prison, syntax-highlighting, ktexttemplate, akonadi, akonadi-calendar, akonadi-contacts, akonadi-import-wizard, calendarsupport, grantleetheme, incidenceeditor, kaddressbook, kcalutils, kidentitymanagement, kimap, kitinerary, kldap, kmailtransport, kpimtextedit, kpkpass, ktnef, libgravatar, libkdepim, libkleo, libksieve, mailcommon, mailimporter, messagelib, pimcommon, ktextaddons, plasma-activities, gpgmepp, discount, corrosion, rust.

Required by (1): kde-gear-pim.

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/44_apps/phase.env && kpkg install kdepim-addons'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/pim/kdepim-addons.

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/pim/kdepim-addons
echo 'd01ea99b6e7938f05f0d3b6332c60e1a4148a14883f1b48acd69951d95c39dc2  kdepim-addons-26.08.2.tar.xz' | sha256sum -c -
echo 'dc25e65f12cdf455a6caefbbd8726cbc7eb70f67071fee4583639b147c696165  kdepim-addons-vendor-26.08.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/kdepim-addons
SRC=$SRC_ROOT/kdepim-addons-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf kdepim-addons-26.08.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 vendordir and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

tar xf "$PORT_SRC/$name-vendor-$version.tar.xz" -C plugins/webengineurlinterceptor/adblock
export CARGO_HOME="$SRC_ROOT/.cargo"
export RUSTFLAGS="-C target-feature=-crt-static"
export CARGO_NET_OFFLINE=true

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D KF_SKIP_PO_PROCESSING=ON \
	-D OPTION_ADD_AUTOGENERATETEXT=OFF \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Mime=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KPim6PimCommonActivities=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_PlasmaActivities=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KPim6ImportWizard=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KPim6Itinerary=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Corrosion=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Discount=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/kdepim-addons, 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 kdepim-addons-26.08.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/kdepim-addons, and runs the triggers its paths call for.

Contents

Installed programs: kmail_antivir.sh, kmail_clamav.sh, kmail_fprot.sh, kmail_sav.sh.

Installed libraries: libadblockplugin.so, libakonadidatasetools.so, libdkimverifyconfigure.so, libexpireaccounttrashfolderconfig.so, libfolderconfiguresettings.so, libkaddressbookmergelibprivate.so, libkmailconfirmbeforedeleting.so, libkmailmarkdown.so, libkmailquicktextpluginprivate.so, libopenurlwithconfigure.so, libshorturlpluginprivate.so.

Installed directories: /usr/lib/qt6/plugins/pim6/contacteditor, /usr/lib/qt6/plugins/pim6/kaddressbook, /usr/lib/qt6/plugins/pim6/kcms/kleopatra, /usr/lib/qt6/plugins/pim6/kmail, /usr/lib/qt6/plugins/pim6/ldapactivities, /usr/lib/qt6/plugins/pim6/libksieve, /usr/lib/qt6/plugins/pim6/mailtransportactivities, /usr/lib/qt6/plugins/pim6/messageviewer/bodypartformatter, /usr/lib/qt6/plugins/pim6/messageviewer/checkbeforedeleting, /usr/lib/qt6/plugins/pim6/messageviewer/configuresettings, /usr/lib/qt6/plugins/pim6/messageviewer/viewercommonplugin, /usr/lib/qt6/plugins/pim6/messageviewer/viewerplugin, /usr/lib/qt6/plugins/pim6/pimcommon, /usr/lib/qt6/plugins/pim6/templateparser, /usr/lib/qt6/plugins/pim6/webengineviewer, /usr/lib/qt6/plugins/plasmacalendarplugins/pimevents, /usr/lib/qt6/qml/org/kde/plasma/PimCalendars, /usr/share/licenses/kdepim-addons.

Notes

The ad blocker is the webengineviewer-adblock crate under plugins/webengineurlinterceptor/adblock, a Cargo workspace that Corrosion builds into a static library with rust. Its crates come from the port’s vendor bundle, made by ports/fetch from the workspace’s Cargo.lock with vendordir set to that directory (see Vendoring). build.sh unpacks the bundle into the same directory, because Corrosion runs cargo with the workspace directory as its working directory and cargo finds the bundle’s .cargo/config.toml by walking up from there; set anywhere else, every crate resolves as missing and the offline build fails. RUSTFLAGS keeps the crate off a static C library, and CARGO_NET_OFFLINE stops cargo from trying the network. The blocker is off by default and downloads its filter lists only once a user turns it on.

gpgmepp is a requirement, for the GnuPG Web Key Service formatter and the key handling of KAddressBook’s vCard import and editor pages, and Qt WebEngine for the message viewer the plugins extend. The module sits at the top of the PIM stack: it needs messagelib, mailcommon, kaddressbook, incidenceeditor, calendarsupport, libksieve, ktextaddons and the rest built first, so it is one of the last PIM ports a build reaches. BUILD_SCAM_SETTINGS_PLUGINS, an unfinished settings page, stays at its default, off, and KDEPIMADDONS_BUILD_EXAMPLES stays unset, which leaves the external-script examples out.