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

331.9. calligra-26.08.2

Office suite — Words, Sheets, Stage and Karbon on OpenDocument, with import filters

Version 26.08.2, release 1
Shelf office — Office suites, word processors, spreadsheets, presentations, accounting and finance, and office-format import libraries
Phase 44_apps (Applications), 318 of 422 in build order
Licence LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later AND LGPL-2.0-only AND LGPL-2.1-only AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND GPL-3.0-or-later AND BSD-3-Clause AND BSD-2-Clause
Homepage https://calligra.org/
Build time 38.7 SBU
Installed size 108.8 MiB in 4912 files
Recipe ports/core/office/calligra/kpkgbuild

About

Calligra is KDE’s office suite: Words for text documents, Sheets for spreadsheets, Stage for presentations and Karbon for vector drawing, all on OpenDocument, with a launcher window, the plain Calligra menu entry, that starts any of the four. One source tree builds the four applications, the shared office libraries under them, import and export filters for Microsoft Office, WordPerfect, Works, Visio, Keynote, RTF, PDF and others, thumbnailers, and Okular generators through which Okular shows OpenDocument and Office files. libreoffice is the office suite the desktop opens by default; Calligra is installed beside it.

Sources

Dependencies

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtsvg, qt6-qtwebengine, karchive, kcompletion, kconfig, kconfigwidgets, kcoreaddons, kcrash, kguiaddons, ki18n, kiconthemes, kitemviews, kjobwidgets, kcmutils, kio, knotifications, knotifyconfig, sonnet, ktextwidgets, kwidgetsaddons, kwindowsystem, kxmlgui, kdbusaddons, kdoctools, kirigami, kirigami-addons, openssl, perl, zlib, qtkeychain, boost, imath, gsl, phonon, phonon-backend-vlc, kdiagram, eigen, qca, lcms2, fontconfig, freetype2, shared-mime-info, okular, librevenge, libodfgen, libwpd, libwpg, libwps, libvisio, libetonyek, poppler.

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

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 calligra'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/office/calligra.

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/office/calligra
echo 'f4b9c11f5957798face6cf29834695d76506c5e28049e21abcb62884ce9cc96c  calligra-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/calligra
SRC=$SRC_ROOT/calligra-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf calligra-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 five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

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 RELEASE_BUILD=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6OpenGL=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Sql=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6WebEngineWidgets=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Imath=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_GSL=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Phonon4Qt6=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KChart6=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Eigen3=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Qca-qt6=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_LCMS2=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Fontconfig=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Freetype=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_SharedMimeInfo=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Okular6=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_LibRevenge=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_LibRevengeStream=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_LibOdfGen=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_LibWpd=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_LibWpg=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_LibWps=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_LibVisio=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_LibEtonyek=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Poppler=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_PopplerXPDFHeaders=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Iconv=ON \
	-D CMAKE_DISABLE_FIND_PACKAGE_Cauchy=ON \
	-D CMAKE_DISABLE_FIND_PACKAGE_OOoSDK=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/calligra, 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 calligra-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/calligra, and runs the triggers its paths call for.

Contents

Installed programs: calligraconverter, calligralauncher, calligrasheets, calligrastage, calligrawords, cstester, cstrunner, karbon, visualimagecompare.

Installed libraries: libRtfReader.so, libautocorrection.so, libbasicflakes.so, libcalligrasheetscore.so, libcalligrasheetsengine.so, libcalligrasheetspartlib.so, libcalligrasheetsui.so, libcalligrastageprivate.so, libflake.so, libkarboncommon.so, libkarbonui.so, libkoformula.so, libkomain.so, libkomsooxml.so, libkoodf.so, libkoodf2.so, libkoodfreader.so, libkookularGenerator_odp.so, libkookularGenerator_odt.so, libkopageapp.so, libkoplugin.so, libkostore.so, libkotext.so, libkotextlayout.so, libkovectorimage.so, libkowidgets.so, libkowidgetutils.so, libkowv2.so, libkundo2.so, libpigmentcms.so, libwordsprivate.so.

Installed directories: /usr/lib/qt6/plugins/calligra, /usr/lib/qt6/plugins/calligrasheets, /usr/lib/qt6/plugins/calligrastage, /usr/lib/qt6/plugins/karbon, /usr/lib/qt6/qml/org/kde/calligra, /usr/share/calligra, /usr/share/calligra_shape_music, /usr/share/calligrasheets, /usr/share/calligrastage, /usr/share/calligrawords, /usr/share/color/icc/calligra, /usr/share/doc/HTML/en/calligra, /usr/share/doc/HTML/en/sheets, /usr/share/doc/HTML/en/stage, /usr/share/karbon, /usr/share/kxmlgui5/calligrasheets, /usr/share/kxmlgui5/calligrastage, /usr/share/kxmlgui5/calligrawords, /usr/share/kxmlgui5/karbon, /usr/share/licenses/calligra, /usr/share/templates.

Notes

Building against Okular makes okular a build dependency of this port, so Okular is listed in 43_toolkits rather than 44_apps, as any application another port builds against is.

Gemini, the touch shell over Words and Stage, is not built: upstream’s top-level CMakeLists.txt carries its add_subdirectory(gemini) commented out, and RELEASE_BUILD turns its product off as well. Quick Widgets and libgit2, which only Gemini and its Git plugin use, are therefore neither required nor in depends; whether the configure finds them changes nothing that is built. kirigami and kirigami-addons are in depends for run time: the launcher, calligralauncher, imports their QML modules.

The EPS import filter is built and runs pstoedit at run time, which upstream only reports as a TYPE RUNTIME package; pstoedit is not a port, so importing an EPS file fails with a missing program. Vc stays off: upstream builds it only with BUILD_VC, which this recipe never sets, and its SIMD kernels would be compiled per CPU level.

The PDF import filter follows Poppler’s internal API, which changes without notice between releases; a Poppler bump can break this port’s build while every other Poppler consumer still builds.

The source tarball, about 58 MB, is the largest of the KDE Gear sources in the tree; expect its build to take correspondingly long.