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

330.17. klettres-26.08.2

KDE alphabet trainer — letters and syllables spoken aloud, in 22 languages

Version 26.08.2, release 1
Shelf education — Learning software, offline encyclopedias and reference dictionaries
Phase 44_apps (Applications), 102 of 422 in build order
Licence GPL-2.0-or-later AND LGPL-2.0-only AND CC0-1.0
Homepage https://apps.kde.org/klettres/
Build time 2.0 SBU
Installed size 44.1 MiB in 1915 files
Recipe ports/core/education/klettres/kpkgbuild

About

KLettres is KDE Education’s alphabet trainer for young children and for adults starting a new language: it says a letter or a syllable aloud and the learner types it. It ships the recorded sounds of 22 languages, four themes and levels from single letters to syllables. Upstream offers more languages through knewstuff, which is off on KDOS (see Notes).

Sources

Dependencies

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtsvg, qt6-qtmultimedia, kcrash, kdoctools, ki18n, knewstuff, kwidgetsaddons, kconfigwidgets, kcoreaddons, kxmlgui.

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

Patches

build.sh applies these; kpkg applies nothing by itself.

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

What kpkg does

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

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/education/klettres
echo '5604e8ca91c719ab2f54dc2d4d64e39c22dbd8d0a2633c6a64465fa09329cc48  klettres-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/klettres
SRC=$SRC_ROOT/klettres-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf klettres-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:

patch -p1 -i "$PORT_SRC/kiosk-get-new.patch"

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 \
	-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/klettres, 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 klettres-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/klettres, and runs the triggers its paths call for.

Contents

Installed programs: klettres.

Installed directories: /usr/share/doc/HTML/en/klettres, /usr/share/klettres, /usr/share/licenses/klettres.

Notes

The sound files under /usr/share/klettres/<language> are the program’s data, not translations, so the language rule keeps every one of them; they are most of the 47 MB tarball. Playback goes through Qt Multimedia.

tests/ is added whatever BUILD_TESTING says, so the configure requires Qt Test, which is part of qt6-qtbase; the test program is built and not installed. KAboutData gives the window the app_id org.kde.klettres, the name of upstream’s entry.

KNewStuff is off on KDOS ([KDE Action Restrictions][$i] ghns=false in /usr/share/kdos/xdg/kdeglobals). “Get Alphabet in New Language…” is a plain action that opens the KNewStuff dialog, so the key would leave it in the menu, opening a page that only says downloading is not allowed; kiosk-get-new.patch hides it under the same check KNewStuff’s own actions make. The alphabets the package installs are all there is.