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

262.1. audacious-4.6.1

Playlist-oriented music player — Qt 6 interface, MPRIS on the session bus

Version 4.6.1, release 1
Shelf music-players — Music players, library managers and taggers
Phase 43_toolkits (Toolkits), 237 of 344 in build order
Licence BSD-2-Clause
Homepage https://audacious-media-player.org/
Build time 1.1 SBU
Installed size 1.9 MiB in 59 files
Recipe ports/core/music-players/audacious/kpkgbuild

About

Audacious is a playlist-oriented music player. This port builds the player itself: the audacious program, the audtool remote control, and the libraries libaudcore, libaudqt and libaudtag that its plugins are written against. Every decoder, every audio output and the Qt window itself are plugins, which audacious-plugins builds; without that port the player opens no window and plays nothing.

Sources

Dependencies

Depends on: meson, ninja, pkgconf, gettext, glib, qt6-qtbase, qt6-qtsvg, qt6-qtwayland, libarchive.

Required by (1): audacious-plugins.

Optional, off in KDOS

These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

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/43_toolkits/phase.env && kpkg install audacious'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/music-players/audacious.

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/music-players/audacious
echo '62a5a609267eca7f6e3ce52ef6f42d5618d2961e3b4ddc227c6a5859026965d9  audacious-4.6.1.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/audacious
SRC=$SRC_ROOT/audacious-4.6.1
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf audacious-4.6.1.tar.bz2 -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:

meson setup build \
	--prefix=/usr \
	--libdir=lib \
	--buildtype=release \
	-Dqt=true \
	-Dqt5=false \
	-Dgtk=false \
	-Dgtk2=false \
	-Ddbus=true \
	-Dlibarchive=true \
	-Dvalgrind=false \
	-Dbuildstamp=KDOS
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

cat > "$PKG/usr/share/applications/audacious.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Audacious
GenericName=Music Player
Comment=Playlist-oriented music player
TryExec=audacious
Exec=audacious %U
Icon=audacious
Terminal=false
StartupNotify=false
StartupWMClass=audacious
SingleMainWindow=true
Categories=AudioVideo;Audio;Player;Qt;
Keywords=music;player;playlist;audio;mp3;flac;winamp;audacious;
DESKTOP
chmod 644 "$PKG/usr/share/applications/audacious.desktop"

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

Contents

Installed programs: audacious, audtool.

Installed libraries: libaudcore.so, libaudqt.so, libaudtag.so.

Installed directories: /usr/include/audacious, /usr/include/libaudcore, /usr/include/libaudqt, /usr/share/licenses/audacious.

Short descriptions

audacious an advanced audio player.
audtool a small tool to control Audacious from the command line.
audacious.pc versatile and handy multi platform media player

Notes

build.sh writes its own audacious.desktop over upstream’s. It has no MimeType line, so Audacious is never offered as the program that opens an audio file. A music file opens in elisa, the default that /usr/share/kdos/xdg/kde-mimeapps.list names for music types, and files are added to Audacious’s playlist from its own window or with audacious <file>. The entry adds StartupWMClass=audacious, the Qt category and search keywords, replaces upstream’s comment, and leaves out upstream’s translated generic names and comments.