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

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

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.

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:

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.