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

330.11. artikulate-26.08.2

KDE pronunciation trainer — record yourself and compare with native speakers

Version 26.08.2, release 1
Shelf education — Learning software, offline encyclopedias and reference dictionaries
Phase 44_apps (Applications), 96 of 422 in build order
Licence (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND BSD-2-Clause AND MIT AND CC0-1.0 AND CC-BY-SA-4.0 AND CC-BY-SA-3.0
Homepage https://apps.kde.org/artikulate/
Build time 8.7 SBU
Installed size 64.1 MiB in 1938 files
Recipe ports/core/education/artikulate/kpkgbuild

About

Artikulate is KDE Education’s pronunciation trainer: the learner hears a native speaker say a word or phrase, records their own attempt, and plays the two back to compare. Courses are sets of recordings per language. The trainer is a Kirigami window; artikulate_editor, which builds courses, is installed beside it without a menu entry of its own.

Sources

Dependencies

Depends on: cmake, ninja, extra-cmake-modules, libxml2, qt6-qtbase, qt6-qtdeclarative, qt6-qtmultimedia, karchive, kconfig, kcrash, ki18n, kitemmodels, knewstuff, kirigami, kirigami-addons, kdoctools.

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

Patches

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

system-courses.patch makes the trainer read courses from artikulate/courses below every system data directory as well as from the user’s ~/.local/share/artikulate/courses, where KNewStuff installs them. Upstream reads only the user’s directory, so a packaged course is never found. It is to be offered upstream at education/artikulate.

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

What kpkg does

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

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/artikulate
echo 'd50d43f1ff9011b86cada3d88316130023691562dd7248f30b54c62c07eb798f  artikulate-26.08.2.tar.xz' | sha256sum -c -
echo '257c35ad6e2dfa711b3917529b7a9c3f2cb6d8fd27e7265161cee014c579e38e  artikulate-course-fr-2014-01-10.tar.bz2' | sha256sum -c -
echo '69d0dd4c7a364afced5a5512c8a9d3eee146390be712dae5ed1a249d70251abd  artikulate-course-gr-2014-01-10.tar.bz2' | sha256sum -c -
echo 'edc1808616a4b5b42f4da3dc0a277647cf629fe8a7d50c42f684a5d5e2f7b258  artikulate-course-ba-2014-01-10.tar.bz2' | sha256sum -c -
echo '489c721ccbf95ff6e61d2e07488c2d5bc5b2037f4dbcad3b984aa09744f4af35  artikulate-course-pl-2014-01-10.tar.bz2' | 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/artikulate
SRC=$SRC_ROOT/artikulate-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf artikulate-26.08.2.tar.xz -C "$SRC" --strip-components=1
tar --no-same-permissions --warning=no-unknown-keyword -xf artikulate-course-fr-2014-01-10.tar.bz2 -C "$SRC_ROOT"
tar --no-same-permissions --warning=no-unknown-keyword -xf artikulate-course-gr-2014-01-10.tar.bz2 -C "$SRC_ROOT"
tar --no-same-permissions --warning=no-unknown-keyword -xf artikulate-course-ba-2014-01-10.tar.bz2 -C "$SRC_ROOT"
tar --no-same-permissions --warning=no-unknown-keyword -xf artikulate-course-pl-2014-01-10.tar.bz2 -C "$SRC_ROOT"

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 recipe’s helpers _courses and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

patch -p1 -i "$PORT_SRC/system-courses.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 \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

install -d "$PKG/usr/share/artikulate/courses/basic"
for l in fr gr ba pl; do
	cp -r "$SRC_ROOT/$l" "$PKG/usr/share/artikulate/courses/basic/"
	test -f "$PKG/usr/share/artikulate/courses/basic/$l/$l.xml"
done
find "$PKG/usr/share/artikulate/courses" -type d -exec chmod 755 {} +
find "$PKG/usr/share/artikulate/courses" -type f -exec chmod 644 {} +

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

Contents

Installed programs: artikulate, artikulate_editor.

Installed libraries: libartikulatecore.so, libartikulatelearnerprofile.so.

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

Notes

Four courses ship in the package, KDE’s French, Greek, Bengali and Polish basic courses, the course sets Artikulate’s KNewStuff provider lists, each its own source = pinned by its sha256 and installed under /usr/share/artikulate/courses/basic/<language>/. They are licensed CC-BY-SA-3.0. KNewStuff is off on KDOS ([KDE Action Restrictions][$i] ghns=false in /usr/share/kdos/xdg/kdeglobals), so the trainer has no download entry and these are the courses it offers. The test line in the install loop stops the build if a course’s XML is missing.

Recording and playback go through Qt Multimedia, which qt6-qtmultimedia builds with its FFmpeg backend.

Course and skeleton files are XML that libxml2 validates against their schemas. The learner profile is a library of the program’s own, libartikulatelearnerprofile, installed without its development link; nothing else links it. The interface imports the formcard module of kirigami-addons, which CMake does not check.

KAboutData gives the window the app_id org.kde.artikulate, the name of upstream’s entry.