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
strawberry-1.2.30.tar.xz(11.1 MiB)
sha25630fea0fdfc2f9c5449ac30d78ac2f5429fb5e1d025a4d1d3473d10f2abe1ef2a
upstream: https://files.strawberrymusicplayer.org/strawberry-1.2.30.tar.xz
archive copy: sources-3/music-players--strawberry-1.2.30.tar.xz
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.
-D CMAKE_DISABLE_FIND_PACKAGE_GTest=ON— the test suite is built whenever GoogleTest and QtTest are found, so the lookup is turned off.-D BUILD_WERROR=OFF— no-Werror. It is upstream’s default, named.-D ENABLE_ALSA=ON— this switch and the otherENABLE_switches setON: ALSA and PulseAudio output, D-Bus and the MPRIS2 interface, global shortcuts registered over D-Bus with kglobalacceld, the shortcut service of the Plasma session, device discovery through udisks2 and GIO, audio CDs through libcdio, MTP through libmtp, the moodbar and its FFTW spectrum, the waveform seek bar, EBU R 128 loudness normalisation through libebur128, Qt’s private native interface, the stream tag reader on sparsehash, Chromaprint, and the iPod classic through libgpod, whose artwork is read and written with gdk-pixbuf.-D ENABLE_SONGTRACKING=ON— fingerprint the collection locally with chromaprint, so a moved or renamed file keeps its play counts and ratings.-D ENABLE_TAGFETCHER=OFF— no tag fetcher: it sends fingerprints to AcoustID and MusicBrainz.-D ENABLE_X11_GLOBALSHORTCUTS=OFF— no global shortcuts grabbed on an X server, which a Wayland session never delivers; the media keys arrive over MPRIS.-D ENABLE_SUBSONIC=OFF— withENABLE_TIDAL,ENABLE_SPOTIFYandENABLE_QOBUZoff: no account-backed streaming services, and withENABLE_DISCORD_RPC=OFFno Discord presence. The collection, playlists, tags and playback all work with no network.-D ENABLE_TRANSLATIONS=OFF— with-D INSTALL_TRANSLATIONS=OFF: no translations. When on, Strawberry compiles them into the binary unless told to install them as files, and KDOS ships English only.
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.