330.18. minuet-26.08.2
KDE ear trainer — intervals, chords, scales and rhythm, played through FluidSynth
| Version | 26.08.2, release 1 |
| Shelf | education — Learning software, offline encyclopedias and reference dictionaries |
| Phase | 44_apps (Applications), 103 of 422 in build order |
| Licence | GPL-2.0-or-later AND LGPL-2.0-or-later AND BSD-2-Clause AND GFDL-1.3-only AND CC0-1.0 AND LicenseRef-GeneralUser-GS |
| Homepage | https://apps.kde.org/minuet/ |
| Build time | 4.7 SBU |
| Installed size | 35.8 MiB in 84 files |
| Recipe | ports/core/education/minuet/kpkgbuild |
About
Minuet is KDE Education’s ear trainer: exercises on intervals, chords, scales and rhythm, played on a piano keyboard and staff, which the learner answers by ear. Sound is synthesised by fluidsynth from a General MIDI soundfont the package carries, and the singing exercises listen through the microphone and detect the pitch with aubio.
Sources
minuet-26.08.2.tar.xz(31.2 MiB)
sha25601e13c43abfbbf0ae662b0d2ec4a9b5618f3fb8b8ae1dec68abbebec17bdfcd4
upstream: https://download.kde.org/stable/release-service/26.08.2/src/minuet-26.08.2.tar.xz
archive copy: sources-2/education--minuet-26.08.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, pkgconf, qt6-qtbase, qt6-qtdeclarative, qt6-qtmultimedia, qt6-qtsvg, fluidsynth, aubio, kcoreaddons, kirigami, ki18n, kirigami-addons, kcrash, kdoctools, qqc2-desktop-style.
Required by (1): kde-gear-education.
Patches
build.sh applies these; kpkg applies nothing by itself.
skip-po-processing.patch is upstream’s commit b7a4b6a1 in education/minuet, which follows this release. With KF_SKIP_PO_PROCESSING on, ki18n_install() returns before it creates the pofiles target, and the release’s unconditional add_dependencies(minuet pofiles) stops the configure at generation with The dependency target "pofiles" of target "minuet" does not exist. The patch adds the dependency only when the target exists. A release that contains the commit makes the patch fail to apply, and it is then dropped.
skip-po-processing.patch— add the pofiles dependency only when ki18n_install made the targetWith KF_SKIP_PO_PROCESSING=ON ki18n_install() returns before it creates the pofiles target, and add_dependencies() on a missing target stops the configure. Upstream commit b7a4b6a1 in education/minuet.
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 minuet'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/education/minuet.
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/minuet
echo '01e13c43abfbbf0ae662b0d2ec4a9b5618f3fb8b8ae1dec68abbebec17bdfcd4 minuet-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/minuet
SRC=$SRC_ROOT/minuet-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf minuet-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/skip-po-processing.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:
-D KF_SKIP_PO_PROCESSING=ON— Skips building the interface translations, which the package-wide English-only rule would remove anyway (see Size and language policy).
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/minuet, 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 minuet-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/minuet, and runs the triggers its paths call for.
Contents
Installed programs: minuet.
Installed libraries: libminuetinterfaces.so.
Installed directories: /usr/include/minuet, /usr/lib/qt6/plugins/minuet, /usr/share/doc/HTML/en/minuet, /usr/share/licenses/minuet, /usr/share/minuet.
Notes
The configure asks pkg-config for fluidsynth >= 2.5.3, which needs pkgconf. On the desktop it also requires the QML modules it loads, org.kde.kirigami, org.kde.coreaddons, the kirigami-addons formcard and onboarding modules and org.kde.desktop, through ecm_find_qmlmodule(... REQUIRED), so qqc2-desktop-style is a build dependency here, not only a run-time one.
The soundfont is GeneralUser GS 1.47 by S. Christian Collins, about 31 MB, installed with the FluidSynth plugin; its licence is its author’s own, named LicenseRef-GeneralUser-GS in the recipe, and the tarball carries no copy of the text. The microphone exercises use Qt Multimedia’s capture and so need a capture device in the session. The sound and microphone back ends are plugins Minuet loads from its own plugin directory.
KAboutData sets the desktop file name org.kde.minuet, the name of upstream’s entry, so the Wayland app_id matches it.