321.7. dragon-26.08.2
Dragon Player — a simple video player for files, discs and streams
| Version | 26.08.2, release 1 |
| Shelf | video-players — Video players and media centres, and their front-end add-ons |
| Phase | 44_apps (Applications), 406 of 422 in build order |
| Licence | GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL |
| Homepage | https://apps.kde.org/dragonplayer/ |
| Build time | 6.3 SBU |
| Installed size | 1.0 MiB in 28 files |
| Recipe | ports/core/video-players/dragon/kpkgbuild |
About
Dragon Player is KDE’s simple video player: one window, a play button, a seek bar, subtitles and audio-track choice, DVDs and streams, and nothing that is not about playing the one video. It is a Kirigami application that plays through Qt Multimedia, so through qt6-qtmultimedia’s FFmpeg backend. haruna is the video player the desktop opens by default; Dragon is installed beside it.
Sources
dragon-26.08.2.tar.xz(150.0 KiB)
sha256e0510d65c59002f5ff5ceed3540b082952bb65bee1490a06e68e24fb0d107941
upstream: https://download.kde.org/stable/release-service/26.08.2/src/dragon-26.08.2.tar.xz
archive copy: sources-4/video-players--dragon-26.08.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, pkgconf, qt6-qtbase, qt6-qtdeclarative, qt6-qtmultimedia, kcoreaddons, kcrash, ki18n, kio, kwindowsystem, kirigami, kconfig, ffmpeg, kio-fuse.
Required by (1): kde-gear-multimedia.
Patches
build.sh applies these; kpkg applies nothing by itself.
app-id.patch changes StartupWMClass=dragonplayer to StartupWMClass=org.kde.dragonplayer in upstream’s desktop entry. Dragon sets its desktop file name, and so its Wayland app_id, to org.kde.dragonplayer; upstream’s shorter class matches no window Dragon opens.
app-id.patch— set StartupWMClass to the Wayland app_id org.kde.dragonplayerDragon sets its desktop file name, and so its app_id, to org.kde.dragonplayer; upstream's class names no window Dragon opens.
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 dragon'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/video-players/dragon.
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/video-players/dragon
echo 'e0510d65c59002f5ff5ceed3540b082952bb65bee1490a06e68e24fb0d107941 dragon-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/dragon
SRC=$SRC_ROOT/dragon-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf dragon-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/app-id.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 KF_SKIP_PO_PROCESSING=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
The switches, and why each is set:
-D KF_SKIP_PO_PROCESSING=ON— Skips building the interface translations, which the package-wide English-only rule would remove anyway (see Size and language policy).
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/dragon, 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 dragon-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/dragon, and runs the triggers its paths call for.
Contents
Installed programs: dragon.
Installed directories: /usr/lib/qt6/qml/org/kde/dragon, /usr/share/licenses/dragon.
Notes
pkg_check_modules(libavcodec REQUIRED) links libavcodec from ffmpeg directly, for one check: whether FFmpeg has an H.264 decoder, without which the player warns that common videos will not play.
A remote URL other than http: and https: is turned into a local path through KIO’s FUSE bridge, kio-fuse, which is in depends for run time; without it an sftp: or smb: video does not open.