332.3. arianna-26.08.2
E-book reader — an EPUB library with progress, search and themes, rendered by foliate-js
26.08.2-1 · GPL-3.0-only AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND LGPL-2.0-or-later AND BSD-3-Clause AND MIT · 2.0 SBU · 2.4 MiB, 20 files · 44_apps, 67 of 422 · ports/core/documents/arianna
Homepage: https://apps.kde.org/arianna/
Arianna is KDE’s EPUB reader: a library that finds the books on the machine, groups them by author, series and publisher, and remembers how far each one has been read, and a reader with search, a table of contents and its own colour themes. The pages are drawn by foliate-js, a JavaScript renderer shipped in the source, inside a Qt WebEngine view; the application serves the open book to that view from an HTTP server bound to 127.0.0.1, guarded by a random token. When calibre is installed, its viewer is the program the desktop opens an EPUB with by default (/usr/share/kdos/xdg/kde-mimeapps.list); Arianna is started from its own menu entry or chosen with Open With.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtsvg, qt6-qtwebsockets, qt6-qtwebchannel, qt6-qthttpserver, qt6-qtwebengine, kirigami, ki18n, kconfig, kcoreaddons, kdbusaddons, kwindowsystem, kfilemetadata, karchive, kquickcharts, kcrash, kcolorscheme, kitemmodels, kirigami-addons, qqc2-desktop-style, baloo.
Required by (1): kde-gear-graphics.
Sources: arianna-26.08.2.tar.xz (1.1 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 arianna'
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_Qt6WebEngineQuick=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Baloo=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6WebEngineQuick=ON— Make Qt WebEngine’s QML module, from qt6-qtwebengine, a requirement. Upstream looks for it withoutREQUIREDbut links it unconditionally, so without it the configure succeeds and the link fails.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Baloo=ON— The same for baloo, which upstream looks for as an optional component and links on every platform but Windows. Through it the library finds books that Baloo has indexed.-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: arianna.
Directories: /usr/share/licenses/arianna.
The renderer and its helpers are JavaScript compiled into the program’s resources as upstream ships them: foliate-js itself, and the built pdf.js, zip.js, fflate.js and jszip.min.js bundles it loads. They are built JavaScript, the class of payload that What is built from source lets ship as released.
The HTTP server listens on port 45961 of the loopback interface only, so nothing outside the machine reaches it; while another program holds that port the reader cannot load a book. Qt HttpServer comes from qt6-qthttpserver, which the single find_package(Qt6 …) call makes a requirement with every other Qt module the program uses.
kitemmodels is in depends for run time: the library view imports its org.kde.kitemmodels QML module, which the configure does not look for.