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

303.4. qutebrowser-3.7.0

Keyboard-driven web browser with vim-like bindings, on Qt WebEngine

Version 3.7.0, release 1
Shelf browsers — Web, Gemini and text-mode browsers
Phase 44_apps (Applications), 15 of 422 in build order
Licence GPL-3.0-or-later
Homepage https://qutebrowser.org/
Build time 0.3 SBU
Installed size 8.3 MiB in 552 files
Recipe ports/core/browsers/qutebrowser/kpkgbuild

About

qutebrowser is a keyboard-driven web browser with Vim-like key bindings, written in Python on PyQt6 and its Qt WebEngine bindings (python3-pyqt6-webengine). The page is drawn by Qt WebEngine; the browser’s own interface is a minimal one of a status bar, a tab bar and a command line.

Sources

Dependencies

Depends on: python3, python3-pip, python3-setuptools, python3-wheel, python3-pyqt6, python3-pyqt6-sip, python3-pyqt6-webengine, python3-jinja2, python3-markupsafe, python3-yaml, python3-pygments, qt6-qtbase, qt6-qtwebengine, qt6-qtwayland.

Required by: no port names it.

Patches

build.sh applies these; kpkg applies nothing by itself.

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

What kpkg does

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

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/browsers/qutebrowser
echo 'c7f95884ea5e6675e584025bea55cff950c47d749aff7f415f68da03fcce0f92  qutebrowser-3.7.0.tar.gz' | 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/qutebrowser
SRC=$SRC_ROOT/qutebrowser-3.7.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf qutebrowser-3.7.0.tar.gz -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"

python3 -m pip install --ignore-installed --no-build-isolation --no-deps --root "$PKG" --prefix /usr .

install -Dm644 doc/qutebrowser.1 "$PKG/usr/share/man/man1/qutebrowser.1"
install -Dm644 misc/org.qutebrowser.qutebrowser.desktop \
	"$PKG/usr/share/applications/org.qutebrowser.qutebrowser.desktop"
install -Dm644 misc/org.qutebrowser.qutebrowser.appdata.xml \
	"$PKG/usr/share/metainfo/org.qutebrowser.qutebrowser.appdata.xml"
for s in 16 24 32 48 64 128 256 512; do
	install -Dm644 "qutebrowser/icons/qutebrowser-${s}x${s}.png" \
		"$PKG/usr/share/icons/hicolor/${s}x${s}/apps/qutebrowser.png"
done
install -Dm644 qutebrowser/icons/qutebrowser.svg \
	"$PKG/usr/share/icons/hicolor/scalable/apps/qutebrowser.svg"
install -d "$PKG/usr/share/qutebrowser/userscripts" "$PKG/usr/share/qutebrowser/scripts"
for f in misc/userscripts/*; do
	[ -f "$f" ] && install -m755 "$f" "$PKG/usr/share/qutebrowser/userscripts/"
done
for f in cycle-inputs.js dictcli.py hist_importer.py hostblock_blame.py \
	importer.py keytester.py open_url_in_instance.sh opengl_info.py utils.py; do
	install -m755 "scripts/$f" "$PKG/usr/share/qutebrowser/scripts/"
done

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/qutebrowser, 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 qutebrowser-3.7.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/qutebrowser, and runs the triggers its paths call for.

Contents

Installed programs: qutebrowser.

Installed directories: /usr/lib/python3.14/site-packages/qutebrowser, /usr/lib/python3.14/site-packages/qutebrowser-3.7.0.dist-info, /usr/share/licenses/qutebrowser, /usr/share/qutebrowser.

Short descriptions

qutebrowser a keyboard-driven, vim-like browser based on Python and Qt.

Notes

pip install installs only the Python package and its qutebrowser command. Everything else is what upstream’s misc/Makefile installs, and build.sh repeats those install lines rather than running the Makefile, whose install target goes through setup.py install and depends on a rule that builds the manual page with a2x. The page ships built in the tarball as doc/qutebrowser.1. The lines install that page, the desktop entry, the AppStream file, the hicolor icons at the Makefile’s ICONSIZES and as SVG, every userscript from misc/userscripts, and the helper scripts from scripts/, under /usr/share/qutebrowser/. The helpers are named one by one: they are the Makefile’s set less mkvenv.py, which creates a local virtualenv with its own PyQt install. A release that adds or drops a helper script, or an icon size, has to be matched in build.sh.