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

155.3. libqalculate-5.12.0

Calculator library with unit and expression parsing

5.12.0-1 · GPL-2.0-or-later · 8.0 SBU · 11.3 MiB, 31 files · 41_system, 738 of 1047 · ports/core/math/libqalculate

Homepage: https://qalculate.github.io/

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/math.txt:

numbat REFUSES a nonsensical unit combination by construction; qalc is the forgiving one with a far larger definition set. Currency rates are the one online feature and they fail quietly rather than inventing a number.

Depends on: pkgconf, gmp, mpfr, libxml2, icu, readline, curl, gettext.

Required by (5): cantor, kalk, plasma-workspace, qalculate-qt, step.

Sources: libqalculate-5.12.0.tar.gz (3.4 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libqalculate'

build.sh:

./configure \
	--prefix=/usr \
	--libdir=/usr/lib \
	--disable-static \
	--with-icu \
	--enable-nls \
	--enable-textport
make
make DESTDIR=$PKG install

Programs: qalc.

Libraries: libqalculate.so.

Directories: /usr/include/libqalculate, /usr/share/licenses/libqalculate, /usr/share/qalculate.