295.4. audex-26.08.2
CD ripper — audio CDs to FLAC, Ogg, Opus or MP3, with CDDB lookup and naming schemes
| Version | 26.08.2, release 1 |
| Shelf | optical — CD, DVD and Blu-ray burning, mastering and CD reading or ripping |
| Phase | 44_apps (Applications), 322 of 422 in build order |
| Licence | GPL-3.0-or-later AND LGPL-2.0-or-later |
| Homepage | https://apps.kde.org/audex/ |
| Build time | 6.2 SBU |
| Installed size | 1.6 MiB in 13 files |
| Recipe | ports/core/optical/audex/kpkgbuild |
About
Audex rips audio CDs: it reads each track with libcdio-paranoia’s error correction, looks the disc up in CDDB through libkcddb, names files and folders from a pattern, and encodes them with an external encoder. It also writes cue sheets, playlists and checksum lists beside the files. Inserting an audio CD offers “Extract Digital Audio with Audex” through a Solid device action.
Sources
audex-26.08.2.tar.xz(744.0 KiB)
sha25661910209fc38112b00722809bceba34b0f8162106a2028ce2b167fe66e0ebd45
upstream: https://download.kde.org/stable/release-service/26.08.2/src/audex-26.08.2.tar.xz
archive copy: sources-3/optical--audex-26.08.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, kconfig, kcompletion, kcoreaddons, kcrash, ki18n, kiconthemes, kcmutils, kio, solid, ktextwidgets, kwidgetsaddons, kxmlgui, libkcddb, libcdio, libcdio-paranoia, flac, vorbis-tools, opus-tools, lame.
Required by (1): kde-gear-multimedia.
Patches
build.sh applies these; kpkg applies nothing by itself.
app-id.patch changes StartupWMClass=audex to StartupWMClass=org.kde.audex and drops MimeType=application/x-audex; from upstream’s desktop entry. Audex sets its desktop file name, and so its Wayland app_id, to org.kde.audex, which the shorter class does not match; no file in the shared MIME database defines application/x-audex, so the claim matches no file.
app-id.patch— set StartupWMClass to org.kde.audex and drop the undefined MIME typeAudex sets its desktop file name, and so its Wayland app_id, to org.kde.audex; upstream's class names no window Audex opens. No shared MIME database file defines application/x-audex, so that claim matches no file.
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 audex'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/optical/audex.
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/optical/audex
echo '61910209fc38112b00722809bceba34b0f8162106a2028ce2b167fe66e0ebd45 audex-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/audex
SRC=$SRC_ROOT/audex-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf audex-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/app-id.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/audex, 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 audex-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/audex, and runs the triggers its paths call for.
Contents
Installed programs: audex.
Installed directories: /usr/share/audex, /usr/share/licenses/audex.
Notes
Encoding runs a program by name from PATH: flac from flac, oggenc from vorbis-tools, opusenc from opus-tools and lame from lame, all in depends for run time. The AAC profile runs faac, which is not a port, so that profile reports a missing encoder. The CDDB lookup goes to the network when a disc is read.
libkcddb, libcdio, libcdio_cdda and libcdio_paranoia are each REQUIRED. The three libcdio libraries are found by upstream’s own find modules, which take pkg-config’s paths as hints when pkg-config is installed and search the standard paths without it.