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

295.2. xfburn-0.8.0

GTK 3 disc burner over libburn — data and audio CDs, DVDs and ISO images

Version 0.8.0, release 1
Shelf optical — CD, DVD and Blu-ray burning, mastering and CD reading or ripping
Phase 44_apps (Applications), 320 of 422 in build order
Licence GPL-2.0-or-later
Homepage https://docs.xfce.org/apps/xfburn/start
Build time 1.0 SBU
Installed size 775.2 KiB in 57 files
Recipe ports/core/optical/xfburn/kpkgbuild

About

Xfburn is Xfce’s GTK 3 disc burner: data and audio CDs and DVDs, and ISO images, written directly through libburn and composed with libisofs. It runs no external writer program, so it needs nothing at run time beyond the libraries it links.

Sources

Dependencies

Depends on: meson, ninja, pkgconf, gettext, glib, gtk3, libburn, libisofs, libxfce4util, libxfce4ui, exo, libgudev, gstreamer, gst-plugins-base, gst-plugins-good, libxslt, docbook-xsl, librsvg.

Required by: no port names it.

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 xfburn'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/optical/xfburn.

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/optical/xfburn
echo '13a301aebcef27de18f63f8ca10b43bc42f9c1b9865dff1bfb3e97cfd95dd989  xfburn-0.8.0.tar.bz2' | 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/xfburn
SRC=$SRC_ROOT/xfburn-0.8.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf xfburn-0.8.0.tar.bz2 -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:

meson setup build --prefix=/usr --sysconfdir=/etc --libdir=lib \
	--buildtype=release \
	-Dgudev=enabled \
	-Dgstreamer=enabled
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

rm -rf "$PKG/usr/share/Thunar"

for s in 48 64 128; do
	install -d "$PKG/usr/share/icons/hicolor/${s}x${s}/apps"
	rsvg-convert -w $s -h $s icons/scalable/stock_xfburn.svg \
		-o "$PKG/usr/share/icons/hicolor/${s}x${s}/apps/xfburn.png"
done

cat > "$PKG/usr/share/applications/xfburn.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Disc Burner (Xfburn)
GenericName=Disc Burning
Comment=Burn data and audio CDs and DVDs, and ISO images
TryExec=xfburn
Exec=xfburn %F
Icon=xfburn
Terminal=false
StartupNotify=true
StartupWMClass=xfburn
Categories=GTK;DiscBurning;Utility;AudioVideo;
Keywords=burn;cd;dvd;iso;disc;write;xfburn;
Actions=BurnImage;

[Desktop Action BurnImage]
Name=Burn Image
Exec=xfburn -i %f
DESKTOP
chmod 644 "$PKG/usr/share/applications/xfburn.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/xfburn, 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 xfburn-0.8.0-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/xfburn, and runs the triggers its paths call for.

Contents

Installed programs: xfburn.

Installed directories: /usr/share/licenses/xfburn, /usr/share/xfburn.

Short descriptions

xfburn An easy to use burning application

Notes

The manual page is built by xsltproc from DocBook with --nonet, so the stylesheet URL has to resolve through the catalog of docbook-xsl, which is why that port is a dependency.

build.sh removes /usr/share/Thunar, the “Send To” entry for a file manager that is not in the tree.

Upstream installs its icon, stock_xfburn, under hicolor’s stock/media context, which the panel’s icon lookup does not read. build.sh rasterises the same SVG into apps/xfburn.png at 48, 64 and 128 pixels, and the desktop entry it writes names that icon. The entry replaces upstream’s: GTK 3 takes the Wayland app id from the program name, so StartupWMClass=xfburn, and the name is qualified, “Disc Burner (Xfburn)”, as Brasero’s is “Disc Burner (Brasero)”, so the menu tells the two GTK burners apart.