319.10. kasts-26.08.2
Podcast player — subscriptions, an episode queue, downloads and chapters, on Kirigami
| Version | 26.08.2, release 1 |
| Shelf | music-players — Music players, library managers and taggers |
| Phase | 44_apps (Applications), 308 of 422 in build order |
| Licence | (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) |
| Homepage | https://apps.kde.org/kasts/ |
| Build time | 5.7 SBU |
| Installed size | 8.4 MiB in 26 files |
| Recipe | ports/core/music-players/kasts/kpkgbuild |
About
Kasts is KDE’s podcast player, a Kirigami application from the convergent set: it subscribes to RSS and Atom feeds, keeps a queue of episodes, downloads them for offline listening, shows chapter marks and resumes each episode where it stopped. Feeds are parsed with syndication, and playback goes through its own KMediaSession library, which also publishes an MPRIS player so the panel and the media keys can drive it.
Sources
kasts-26.08.2.tar.xz(698.1 KiB)
sha256667c3bfbccfa62a6ac761ae17f0ee617f0f8e74803e134931067940d1a278da1
upstream: https://download.kde.org/stable/release-service/26.08.2/src/kasts-26.08.2.tar.xz
archive copy: sources-3/music-players--kasts-26.08.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, pkgconf, qt6-qtbase, qt6-qtdeclarative, qt6-qtsvg, qt6-qtmultimedia, ki18n, kcoreaddons, kirigami, syndication, kconfig, threadweaver, kcolorscheme, kiconthemes, kdbusaddons, kwindowsystem, kcrash, kirigami-addons, breeze-icons, taglib, qtkeychain, vlc, gstreamer, gst-plugins-base, gst-plugins-good, qqc2-desktop-style.
Required by (1): kde-gear-multimedia.
Patches
build.sh applies these; kpkg applies nothing by itself.
app-id.patch changes StartupWMClass=kasts to StartupWMClass=org.kde.kasts in upstream’s desktop entry. Kasts takes its Wayland app_id from KAboutData, which derives org.kde.kasts, the desktop file name; upstream’s shorter class matches no window Kasts opens.
app-id.patch— set StartupWMClass to the Wayland app_id org.kde.kastsKasts takes its app_id from KAboutData, which derives org.kde.kasts, the desktop file name; upstream's class names no window Kasts 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 kasts'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/music-players/kasts.
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/kasts
echo '667c3bfbccfa62a6ac761ae17f0ee617f0f8e74803e134931067940d1a278da1 kasts-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/kasts
SRC=$SRC_ROOT/kasts-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf kasts-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 \
-D CMAKE_REQUIRE_FIND_PACKAGE_LIBVLC=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6BreezeIcons=ON \
-D BUILD_GSTREAMER_BACKEND=ON \
-Wno-dev
grep -q "^GSTREAMER_FOUND:INTERNAL=1$" build/CMakeCache.txt
cmake --build build
DESTDIR=$PKG cmake --install build
The switches, and why each is set:
-D CMAKE_REQUIRE_FIND_PACKAGE_LIBVLC=ON— Make libVLC, from vlc, a requirement. Upstream marks it recommended and drops the VLC backend without it; when it is built,KMediaSessionpicks it as the default backend.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6BreezeIcons=ON— Make the Breeze icon library from breeze-icons a requirement. Upstream looks for it quietly and, when it is found, links it and registers its icons at start-up, so the interface has its icons even under an icon theme that lacks them.-D BUILD_GSTREAMER_BACKEND=ON— Build the GStreamer backend, which upstream turns on by default but compiles only whenpkg_check_modulesfindsgstreamer-1.0. There is no requirement switch for a pkg-config check, so thegrepofbuild/CMakeCache.txtafter the configure fails the build when gstreamer was not found, instead of shipping without the backend.-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/kasts, 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 kasts-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/kasts, and runs the triggers its paths call for.
Contents
Installed programs: kasts.
Installed libraries: libKMediaSession.so.
Installed directories: /usr/lib/qt6/qml/org/kde/kmediasession, /usr/share/licenses/kasts.
Notes
The three backends are Qt Multimedia, always built, libVLC and GStreamer, and the settings page switches between them. The GStreamer backend plays through playbin and slows or speeds speech with scaletempo, from gst-plugins-base and gst-plugins-good, both in depends for run time.
The password for a gpodder.net or Nextcloud sync account is stored through qtkeychain, which reaches the Secret Service; on KDOS that is ksecretd, from kwallet. Feeds and episodes come from the network only when the person refreshes or downloads: upstream’s defaults leave the refresh at start-up and the timed refresh off.