296.7. kgpg-26.08.2
GnuPG key manager — keys, signing, trust, key servers, and an editor that encrypts text
26.08.2-1 · GPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) · 2.2 SBU · 2.9 MiB, 66 files · 44_apps, 365 of 422 · ports/core/security/kgpg
Homepage: https://apps.kde.org/kgpg/
KGpg is a front end to GnuPG: it lists the keys in the keyring with their trust and validity, generates, imports, exports, signs and revokes them, talks to key servers, and has an editor and a clipboard action that encrypt, decrypt, sign and verify text. Dolphin service menus encrypt a file or folder and show a decrypted file. “Create New Contact in Address Book” opens a key’s owner as an Akonadi contact, found by e-mail address or new. kleopatra covers the same ground with S/MIME as well; both are installed.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, karchive, kcodecs, kcoreaddons, kcrash, kdbusaddons, ki18n, kjobwidgets, kio, knotifications, kservice, ktextwidgets, kxmlgui, kwidgetsaddons, kwindowsystem, kcontacts, kstatusnotifieritem, akonadi-contacts, gpgme, gnupg, kdoctools.
Required by (1): kde-gear-pim.
Sources: kgpg-26.08.2.tar.xz (2.9 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install kgpg'
build.sh:
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 CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON— The handbook, through kdoctools, which upstream looks for as optional; required, a missing one stops the configure instead of leaving the handbook out.-D KF_SKIP_PO_PROCESSING=ON— Skips building the interface translations, which the package-wide English-only rule would remove anyway (see Size and language policy).
Programs: kgpg.
Directories: /usr/share/doc/HTML/en/kgpg, /usr/share/licenses/kgpg.
find_package(KPim6AkonadiContactWidgets REQUIRED) makes akonadi-contacts a requirement of the configure, and with it the Akonadi stack, so KGpg builds with the PIM wave. GpgME is found by upstream’s own FindGpgme, which runs gpgme-config from gpgme; every key operation runs gpg from gnupg.
The port installs its desktop entry a second time into /etc/xdg/autostart, guarded by X-KDE-autostart-condition=kgpgrc:User Interface:AutoStart:false, so KGpg starts with the session only after its first-run assistant’s “start automatically” box has been ticked.