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

319.6. rhythmbox-3.5.1

GNOME music player and library organiser

Version 3.5.1, release 2
Shelf music-players — Music players, library managers and taggers
Phase 44_apps (Applications), 304 of 422 in build order
Licence GPL-2.0-or-later WITH LicenseRef-Rhythmbox-GStreamer-exception
Homepage https://gitlab.gnome.org/GNOME/rhythmbox
Build time 1.8 SBU
Installed size 6.6 MiB in 254 files
Recipe ports/core/music-players/rhythmbox/kpkgbuild

About

Rhythmbox is GNOME’s music player and library organiser, a GTK 3 application that plays through gstreamer. Beside the library it handles audio CDs, portable players and phones, playlists, internet radio and podcasts, with much of its behaviour in plugins. gst-libav is its AAC decoder, so .m4a and .aac files in the library play.

Sources

Dependencies

Depends on: meson, ninja, pkgconf, gettext, itstool, glib, gobject-introspection, gtk3, cairo, pango, gdk-pixbuf, gstreamer, gst-plugins-base, gst-plugins-good, gst-libav, json-glib, libpeas, libsoup3, libxml2, tdb, totem-pl-parser, libgudev, libsecret, libmtp, libnotify, brasero, libX11, python3, python3-gobject, vala, librsvg, libgpod, lirc.

Required by: no port names it.

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

What kpkg does

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

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/rhythmbox
echo '8ee7d1714481956023b464264ebe0bd50217d4b472b1c5b3a6254ff8da924093  rhythmbox-3.5.1.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/rhythmbox
SRC=$SRC_ROOT/rhythmbox-3.5.1
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf rhythmbox-3.5.1.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:

meson setup build --prefix=/usr --sysconfdir=/etc --libdir=lib \
	--buildtype=release \
	-Dbrasero=enabled \
	-Ddaap=disabled \
	-Dfm_radio=enabled \
	-Dgrilo=disabled \
	-Dgudev=enabled \
	-Dipod=enabled \
	-Dlibnotify=enabled \
	-Dlibsecret=enabled \
	-Dlirc=enabled \
	-Dmtp=enabled \
	-Dplugins_python=enabled \
	-Dplugins_vala=enabled \
	-Dsample-plugins=false \
	-Dhelp=true \
	-Dapidoc=false \
	-Dtests=disabled
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

find "$PKG/usr/share/help" -mindepth 1 -maxdepth 1 ! -name C -exec rm -rf {} +

for s in 48 64 128; do
	install -d "$PKG/usr/share/icons/hicolor/${s}x${s}/apps"
	rsvg-convert -w $s -h $s data/icons/hicolor/scalable/apps/org.gnome.Rhythmbox3.svg \
		-o "$PKG/usr/share/icons/hicolor/${s}x${s}/apps/org.gnome.Rhythmbox3.png"
done

cat > "$PKG/usr/share/applications/org.gnome.Rhythmbox3.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Rhythmbox
GenericName=Music Player
Comment=Play and organize your music collection
TryExec=rhythmbox
Exec=rhythmbox %U
Icon=org.gnome.Rhythmbox3
Terminal=false
StartupNotify=true
StartupWMClass=org.gnome.Rhythmbox3
Categories=GTK;AudioVideo;Audio;Player;
Keywords=audio;song;mp3;cd;podcast;mtp;playlist;radio;music;rhythmbox;
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.gnome.Rhythmbox3.desktop"

The switches, and why each is set:

Every optional feature is named, so a dependency that goes missing stops the configure instead of being dropped by meson’s auto.

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

Contents

Installed programs: rhythmbox, rhythmbox-client.

Installed libraries: librhythmbox-core.so.

Installed directories: /usr/include/rhythmbox, /usr/lib/rhythmbox, /usr/share/help/C/rhythmbox, /usr/share/licenses/rhythmbox, /usr/share/rhythmbox.

Short descriptions

rhythmbox music player and library for tagged files using GStreamer
rhythmbox-client controls a running instance of rhythmbox
rhythmbox.pc plugin API for rhythmbox

Notes

The online plugins (Last.fm and ListenBrainz scrobbling, Magnatune, internet radio, podcasts, lyrics, cover search) have no build switch. Offline each finds nothing, and the scrobblers send nothing until an account is signed in.

Upstream ships the application icon as SVG only; build.sh also renders org.gnome.Rhythmbox3.svg at 48, 64 and 128 pixels with rsvg-convert from librsvg.

The desktop entry is KDOS’s own, written over upstream’s. Its StartupWMClass is the GtkApplication id org.gnome.Rhythmbox3, which is the Wayland app id. It claims no MIME type: elisa is the program audio files open in, in /usr/share/kdos/xdg/kde-mimeapps.list. Upstream’s second entry, org.gnome.Rhythmbox3.device.desktop, is installed unchanged: hidden from menus, it runs rhythmbox-client --select-source and claims only the x-content/audio-player and x-content/audio-cdda content types, a connected player and an audio CD.