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

258.2. kdegraphics-mobipocket-26.08.2

Mobipocket (.mobi, .prc, .azw) reader library Okular and the thumbnailers open e-books through

26.08.2-1 · GPL-2.0-or-later · 0.3 SBU · 99.3 KiB, 12 files · 43_toolkits, 102 of 344 · ports/core/kde/kdegraphics-mobipocket

Homepage: https://invent.kde.org/graphics/kdegraphics-mobipocket

Why it is in KDOS. The comment above it in script/phases/43_toolkits/packages.d/kde.txt:

The Mobipocket reader library Okular and kdegraphics-thumbnailers open .mobi, .prc and .azw books with.

kdegraphics-mobipocket is the library Okular and the thumbnailers read Mobipocket e-books with: .mobi, .prc and unencrypted .azw files, their text and their cover pictures. okular’s Mobipocket generator and the e-book thumbnailer of kdegraphics-thumbnailers link it.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase.

Required by (4): kde-gear-core, kdegraphics-thumbnailers, kfilemetadata, okular.

Sources: kdegraphics-mobipocket-26.08.2.tar.xz (20.1 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 kdegraphics-mobipocket'

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 \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
test -e "$PKG/usr/lib/libQMobipocket6.so.3"
test -f "$PKG/usr/lib/cmake/QMobipocket6/QMobipocket6Config.cmake"

Libraries: libQMobipocket6.so.

Directories: /usr/include/QMobipocket6, /usr/lib/cmake/QMobipocket6, /usr/share/licenses/kdegraphics-mobipocket.

The tarball has no po/ directory, so the recipe does without the KF_SKIP_PO_PROCESSING switch the other KDE recipes pass. The two test lines after the install fail the build when the library or its CMake package file is missing, the two things its consumers find it by.