291.2. filelight-26.08.2
Disk usage — folders drawn as concentric rings, sized by what they hold
| Version | 26.08.2, release 1 |
| Shelf | files — File managers, disk-usage analysers, duplicate finders and file locators |
| Phase | 44_apps (Applications), 129 of 422 in build order |
| Licence | GPL-2.0-only OR GPL-3.0-only |
| Homepage | https://apps.kde.org/filelight/ |
| Build time | 1.3 SBU |
| Installed size | 810.2 KiB in 21 files |
| Recipe | ports/core/files/filelight/kpkgbuild |
About
Filelight shows where disk space goes: each folder is drawn as a ring of segments around its parent, sized by what it holds, and a click descends into one. It is a KDE application on Qt 6, with a QML interface on kirigami, drawn through qqc2-desktop-style so that it takes the Qt palette.
Sources
filelight-26.08.2.tar.xz(678.2 KiB)
sha256c802521bef6cdce513a95c3c47b6a581d0bf5dfb3c852bb1d2cd0d7c2e69951b
upstream: https://download.kde.org/stable/release-service/26.08.2/src/filelight-26.08.2.tar.xz
archive copy: sources-2/files--filelight-26.08.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtsvg, kio, ki18n, kcolorscheme, kconfig, kcoreaddons, kcrash, kdoctools, kirigami, qqc2-desktop-style.
Required by (1): kde-gear-core.
Patches
build.sh applies these; kpkg applies nothing by itself.
app-id.patch— Replace MimeType=inode/directory in filelight's desktop entry with StartupWMClass=org.kde.filelightThe class names the app_id Filelight's window carries, its desktop file name. With MimeType=inode/directory a folder could open in the disk-usage view instead of the file manager.
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 filelight'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/files/filelight.
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/files/filelight
echo 'c802521bef6cdce513a95c3c47b6a581d0bf5dfb3c852bb1d2cd0d7c2e69951b filelight-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/filelight
SRC=$SRC_ROOT/filelight-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf filelight-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_KF6DocTools=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
The switches, and why each is set:
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON— The handbook, through kdoctools, which upstream looks for as optional; required, a missing one stops the configure instead of leaving the handbook out.-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/filelight, 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 filelight-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/filelight, and runs the triggers its paths call for.
Contents
Installed programs: filelight.
Installed directories: /usr/share/doc/HTML/en/filelight, /usr/share/licenses/filelight.
Notes
Kirigami and qqc2-desktop-style are QML modules imported at run time. Upstream’s CMake only reports them, Kirigami through ecm_find_qmlmodule and qqc2-desktop-style as a TYPE RUNTIME package, and configures without either, so depends is what puts them on the system.