319.3. elisa-26.08.2
KDE music player — a local music collection, played through libVLC
| Version | 26.08.2, release 1 |
| Shelf | music-players — Music players, library managers and taggers |
| Phase | 44_apps (Applications), 301 of 422 in build order |
| Licence | LGPL-3.0-or-later AND GPL-3.0-or-later |
| Homepage | https://apps.kde.org/elisa/ |
| Build time | 0.3 SBU |
| Installed size | 9.0 MiB in 23 files |
| Recipe | ports/core/music-players/elisa/kpkgbuild |
About
Elisa is KDE’s music player for a local collection: it indexes the music on the machine, browses it by album, artist, genre and folder, and plays it through libVLC from vlc. Its interface is written in QML with Kirigami.
Sources
elisa-26.08.2.tar.xz(1.4 MiB)
sha256432331a84ade68fd519974c91ebd789bf5670b9be24e9acc8b5def3140b30b1c
upstream: https://download.kde.org/stable/release-service/26.08.2/src/elisa-26.08.2.tar.xz
archive copy: sources-3/music-players--elisa-26.08.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtmultimedia, qt6-qtsvg, qt6-qtwayland, ki18n, kcoreaddons, kiconthemes, kfilemetadata, kxmlgui, kconfig, kcolorscheme, kcodecs, kcrash, kdbusaddons, kio, kirigami, kirigami-addons, qqc2-desktop-style, vlc.
Required by (1): kde-gear-core.
Patches
build.sh applies these; kpkg applies nothing by itself.
empty-playlist-footer.patch fits the playlist footer, the status line under the playlist column. An empty playlist reads “0 tracks”, where upstream reads “0 tracks, total”, and a progress indicator at position 0 reads “00:00” rather than nothing. The footer takes the longest of its forms that fits the label, and upstream’s shortest, such as “1/2 tracks, 00:06/00:07 remaining”, is wider than the column at the window’s default size, so it is cut mid-word; the patch adds a fourth form without the remaining time, such as “1/2 tracks, 00:07 total”, and measures each form in the label’s own font, not only its family. It is to be offered upstream as a merge request against multimedia/elisa.
empty-playlist-footer.patch— Fit the playlist footer: a bare count for an empty playlist, a zero position formatted, a shortest form for a narrow columnThe playlist footer took the "%1 tracks, %2 total" branch for an empty playlist, whose remainingTracks is -1, and ProgressIndicator left its text empty at position 0: it formats only in setPosition(), which returns early when the position is unchanged and the position starts at 0. The footer reads "0 tracks, total". Give an empty playlist its own branch, which reads "0 tracks" through the existing "%1 track" string. Format the starting position in the constructor, through the same helper setPosition() uses, so every ProgressIndicator bound to 0 reads "00:00": the duration slider's labels before anything has played, and a playlist whose tracks have no known length.
The footer picks the longest of three forms that fits the label, but the shortest, "1/2 tracks, 00:06/00:07 remaining", is wider than the playlist column at the window's default size, so it is elided mid-word. Add a fourth form without the remaining time, "1/2 tracks, 00:07 total", for a column too narrow for the third, and measure every form in the label's own font rather than its family alone, so a form is chosen only when it fits as drawn.
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 elisa'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/music-players/elisa.
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/elisa
echo '432331a84ade68fd519974c91ebd789bf5670b9be24e9acc8b5def3140b30b1c elisa-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/elisa
SRC=$SRC_ROOT/elisa-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf elisa-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/empty-playlist-footer.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 CMAKE_REQUIRE_FIND_PACKAGE_LIBVLC=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6DBus=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DBusAddons=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Crash=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6FileMetaData=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6XmlGui=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_UPNPQT=ON \
-D KF_SKIP_PO_PROCESSING=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
cat > "$PKG/usr/share/applications/org.kde.elisa.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Elisa
GenericName=Music Player
Comment=Play your local music collection
TryExec=elisa
Exec=elisa %U
Icon=elisa
Terminal=false
StartupWMClass=org.kde.elisa
SingleMainWindow=true
MimeType=audio/aac;audio/mp4;audio/mpeg;audio/mpegurl;audio/vnd.rn-realaudio;audio/vorbis;audio/x-flac;audio/x-mp3;audio/x-mpegurl;audio/x-ms-wma;audio/x-musepack;audio/x-flac+ogg;audio/x-pn-realaudio;audio/x-scpls;audio/x-speex+ogg;audio/x-vorbis;audio/x-wav;application/x-ogm-audio;audio/x-opus+ogg;audio/x-vorbis+ogg;audio/ogg;
Categories=Qt;KDE;AudioVideo;Audio;Player;
Keywords=music;player;audio;library;playlist;elisa;
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.kde.elisa.desktop"
The switches, and why each is set:
-D KF_SKIP_PO_PROCESSING=ON— Builds none of the interface translations inpo/; the image is English only (see Size and language policy).-D CMAKE_REQUIRE_FIND_PACKAGE_LIBVLC=ON— stop the configure if libVLC is missing. Upstream marks it recommended and plays through QtMultimedia without it.-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6DBus=ON— with-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DBusAddons=ON,-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Crash=ON,-D CMAKE_REQUIRE_FIND_PACKAGE_KF6FileMetaData=ONand-D CMAKE_REQUIRE_FIND_PACKAGE_KF6XmlGui=ON: make required what upstream marks optional or recommended: the MPRIS interface on D-Bus, which lets the panel and media keys control playback, crash handling, tag reading through KFileMetaData, and the XmlGui shortcuts dialog. Each would otherwise be dropped without an error when missing.-D CMAKE_DISABLE_FIND_PACKAGE_UPNPQT=ON— never look for UPnP support. Upstream describes it as broken, and its library, UPnP-Qt, is not a port.
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/elisa, 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 elisa-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/elisa, and runs the triggers its paths call for.
Contents
Installed programs: elisa.
Installed directories: /usr/lib/elisa, /usr/share/licenses/elisa.
Notes
The radio list Elisa ships points at internet streams, so it plays nothing offline; the collection itself is local.
The desktop entry is KDOS’s own, written over upstream’s. Its StartupWMClass is org.kde.elisa, the desktop file name KAboutData derives and so the Wayland app id, where upstream’s says elisa, so the task manager can match the window to its entry. It keeps upstream’s MimeType= list of audio and playlist types, which is how Elisa is offered for audio files and can be the default music player the shipped MIME associations name; strawberry claims the same types beside it.