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

257.35. prison-6.31.0

KDE Frameworks: barcode generation and scanning

6.31.0-1 · MIT · 1.7 SBU · 443.6 KiB, 44 files · 43_toolkits, 96 of 344 · ports/core/kf6/prison

Homepage: https://api.kde.org/frameworks/prison/html/

Why it is in KDOS. The comment above the 61 ports from karchive to kfilemetadata in script/phases/43_toolkits/packages.d/kf6.txt:

The libraries KDE applications are built on, without Plasma.

Prison draws and reads barcodes. Its KF6Prison library generates QR codes, Data Matrix, Aztec, PDF417, Code 39, Code 93, Code 128 and EAN-13 barcodes as images, with a QML module, org.kde.prison, for Qt Quick programs; KF6PrisonScanner reads barcodes from a camera’s video frames, with its own CMake package. Spectacle’s QR code scanning, the clipboard applet’s QR code and merkuro use it.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtmultimedia, qrencode, libdmtx, zxing-cpp.

Required by (12): akonadi-contacts, itinerary, kdepim-addons, keysmith, merkuro, neochat, plasma-nm, plasma-workspace, purpose, qrca, spectacle, tokodon.

Sources: prison-6.31.0.tar.xz (57.3 KiB). Every step kpkg takes applies to this port.

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

build.sh:

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 WITH_DMTX=ON \
	-D WITH_ZXING=ON \
	-D WITH_QUICK=ON \
	-D WITH_MULTIMEDIA=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Libraries: libKF6Prison.so, libKF6PrisonScanner.so.

Directories: /usr/include/KF6/Prison, /usr/include/KF6/PrisonScanner, /usr/lib/cmake/KF6Prison, /usr/lib/cmake/KF6PrisonScanner, /usr/lib/qt6/qml/org/kde/prison, /usr/share/licenses/prison.

QR codes come from qrencode, which the configure requires with no switch. The scanner has a CMake package of its own, KF6PrisonScanner; KF6PrisonConfig.cmake loads it as well for a program that asks for KF6Prison below version 6.31, so such a program finds the KF6::PrisonScanner target where it looks for it. The source carries no translations, so the recipe has no KF_SKIP_PO_PROCESSING.