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

319.5. strawberry-1.2.30

Music player and collection organiser — tags, playlists, loudness normalisation, CD and MTP devices

Version 1.2.30, release 1
Shelf music-players — Music players, library managers and taggers
Phase 44_apps (Applications), 303 of 422 in build order
Licence GPL-3.0-or-later
Homepage https://www.strawberrymusicplayer.org/
Build time 9.4 SBU
Installed size 14.9 MiB in 8 files
Recipe ports/core/music-players/strawberry/kpkgbuild

About

Strawberry is a music player and collection organiser: it indexes a local music collection, edits tags, keeps playlists, play counts and ratings, normalises loudness, and plays audio CDs and music on MTP and iPod devices. It plays through gstreamer. Audio files open in elisa on KDOS, by /usr/share/kdos/xdg/kde-mimeapps.list; Strawberry is offered beside it.

Sources

Dependencies

Depends on: cmake, ninja, pkgconf, qt6-qtbase, qt6-qtwayland, kdsingleapplication, glib, gstreamer, gst-plugins-base, gst-plugins-good, gst-plugins-bad, gst-libav, sqlite, taglib, boost, icu, openssl, alsa-lib, libpulse, fftw, libebur128, sparsehash, libcdio, libmtp, chromaprint, libgpod, gdk-pixbuf.

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

What kpkg does

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

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

cmake -S . -B build -G Ninja \
	-D CMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D CMAKE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D CMAKE_DISABLE_FIND_PACKAGE_GTest=ON \
	-D BUILD_WERROR=OFF \
	-D ENABLE_ALSA=ON \
	-D ENABLE_PULSE=ON \
	-D ENABLE_DBUS=ON \
	-D ENABLE_MPRIS2=ON \
	-D ENABLE_KGLOBALACCEL_GLOBALSHORTCUTS=ON \
	-D ENABLE_UDISKS2=ON \
	-D ENABLE_GIO=ON \
	-D ENABLE_GIO_UNIX=ON \
	-D ENABLE_AUDIOCD=ON \
	-D ENABLE_MTP=ON \
	-D ENABLE_MOODBAR=ON \
	-D ENABLE_GSTFASTSPECTRUM=ON \
	-D ENABLE_WAVEFORM=ON \
	-D ENABLE_EBUR128=ON \
	-D ENABLE_QPA_QPLATFORMNATIVEINTERFACE=ON \
	-D ENABLE_STREAMTAGREADER=ON \
	-D ENABLE_X11_GLOBALSHORTCUTS=OFF \
	-D ENABLE_CHROMAPRINT=ON \
	-D ENABLE_SONGTRACKING=ON \
	-D ENABLE_TAGFETCHER=OFF \
	-D ENABLE_GPOD=ON \
	-D ENABLE_SUBSONIC=OFF \
	-D ENABLE_TIDAL=OFF \
	-D ENABLE_SPOTIFY=OFF \
	-D ENABLE_QOBUZ=OFF \
	-D ENABLE_DISCORD_RPC=OFF \
	-D ENABLE_TRANSLATIONS=OFF \
	-D INSTALL_TRANSLATIONS=OFF \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

cat > "$PKG/usr/share/applications/org.strawberrymusicplayer.strawberry.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Strawberry
GenericName=Music Player
Comment=Play and organise your music collection
TryExec=strawberry
Exec=strawberry %U
Icon=strawberry
Terminal=false
StartupWMClass=org.strawberrymusicplayer.strawberry
Categories=AudioVideo;Audio;Player;Qt;
Keywords=music;player;audio;playlist;collection;flac;mp3;strawberry;
MimeType=x-content/audio-player;application/ogg;application/x-ogg;application/x-ogm-audio;audio/flac;audio/ogg;audio/vorbis;audio/aac;audio/mp4;audio/mpeg;audio/mpegurl;audio/vnd.rn-realaudio;audio/x-flac;audio/x-oggflac;audio/x-vorbis;audio/x-vorbis+ogg;audio/x-speex;audio/x-wav;audio/x-wavpack;audio/x-ape;audio/x-mp3;audio/x-mpeg;audio/x-mpegurl;audio/x-ms-wma;audio/x-musepack;audio/x-pn-realaudio;audio/x-scpls;
Actions=Play-Pause;Stop;Previous;Next;

[Desktop Action Play-Pause]
Name=Play/Pause
Exec=strawberry --play-pause

[Desktop Action Stop]
Name=Stop
Exec=strawberry --stop

[Desktop Action Previous]
Name=Previous
Exec=strawberry --previous

[Desktop Action Next]
Name=Next
Exec=strawberry --next
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.strawberrymusicplayer.strawberry.desktop"

The switches, and why each is set:

Strawberry declares each feature as an optional component, ENABLE_<NAME>, and every one is on by default. A component switched on whose library is missing is still dropped, with only a line in the configure summary, so that summary is where a missing dependency shows. The recipe names every component offered on Linux, so the set it asks for is explicit.

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

Contents

Installed programs: strawberry.

Installed directories: /usr/share/licenses/strawberry.

Short descriptions

strawberry music player and music collection organizer

Notes

The desktop entry is KDOS’s own, written over upstream’s. Strawberry’s main() sets the desktop file name, so the Wayland app id is org.strawberrymusicplayer.strawberry, which StartupWMClass repeats where upstream’s says strawberry. The entry drops upstream’s tidal: scheme handler along with the Tidal service, and its video/x-ms-asf type, so an ASF file is not offered to Strawberry. It keeps the Play/Pause, Stop, Previous and Next actions of upstream’s five, leaving out Stop After Current.