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

257.62. kunitconversion-6.31.0

KDE Frameworks: unit conversion

6.31.0-1 · LGPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) · 0.9 SBU · 575.8 KiB, 20 files · 43_toolkits, 191 of 344 · ports/core/kf6/kunitconversion

Homepage: https://invent.kde.org/frameworks/kunitconversion

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.

KUnitConversion converts values between units: length, mass, temperature, speed, pressure, energy, data sizes, currencies and two dozen more categories, with the unit names and symbols a user may type. Plasma’s KRunner and the unit converter widget answer “10 km in miles” through it, and kalzium converts its quantities with it.

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

Required by (5): itinerary, kalk, kalzium, kdeplasma-addons, plasma5support.

Sources: kunitconversion-6.31.0.tar.xz (983.2 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 kunitconversion'

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 KF_SKIP_PO_PROCESSING=ON \
	-D BUILD_TESTING=OFF \
	-D BUILD_PYTHON_BINDINGS=OFF \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Libraries: libKF6UnitConversion.so.

Directories: /usr/include/KF6/KUnitConversion, /usr/lib/cmake/KF6UnitConversion, /usr/share/licenses/kunitconversion.

Currency rates are not carried in the library. A program that asks for them makes the library download the European Central Bank’s daily reference rates (https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml) over Qt Network into ~/.local/share/libkunitconversion/currency.xml, again once the copy is older than the period the caller gives, and only while a network connection is up. With no copy, currency conversions give no result; every other category works offline.