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

251.9. appstream-1.2.0

AppStream metadata library and appstreamcli — reads and validates software component data

1.2.0-1 · LGPL-2.1-or-later · 0.8 SBU · 4.2 MiB, 115 files · 43_toolkits, 343 of 344 · ports/core/xdg/appstream

Homepage: https://www.freedesktop.org/wiki/Distributions/AppStream/

AppStream is the freedesktop.org standard for describing software: each application’s metainfo file (name, summary, description, screenshots, licence, what it provides) and the catalogues a software centre reads them from. This port installs libappstream, appstreamcli, which validates metainfo files and queries and builds catalogues, the Qt binding libAppStreamQt and libappstream-compose. Discover requires AppStreamQt, and lists ports, packs and boxes from AppStream catalogues: the catalogue of the installed ports, /usr/share/swcatalog/xml/kdos-ports.xml, is written through AppStreamQt by kdos-discover-catalog from kdos-discover, which the image build runs over the finished tree.

Depends on: meson, ninja, pkgconf, glib, gobject-introspection, glib-introspection, curl, libxml2, libfyaml, libxmlb, zstd, gperf, itstool, wayland, snowball, bash-completion, libxslt, docbook-xsl, qt6-qtbase, libvips, cairo, pango, fontconfig, freetype2.

Required by (4): discover, gimp, kdos-discover, plasma-workspace.

Sources: appstream-1.2.0.tar.xz (2.8 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install appstream'

build.sh:

cd "AppStream-$version"

meson setup build \
	--prefix=/usr --sysconfdir=/etc --libdir=lib \
	--buildtype=release \
	-Dsystemd=false \
	-Dstemming=true \
	-Dqt=true \
	-Dcompose=true \
	-Dvapi=false \
	-Dgir=true \
	-Dtools=true \
	-Dzstd-support=true \
	-Dblake3-support=false \
	-Dapt-support=false \
	-Ddisplay-detection=wayland \
	-Dbash-completion=true \
	-Ddocs=false \
	-Dapidocs=false \
	-Dinstall-docs=false \
	-Dman=true
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

rm -rf "$PKG/usr/share/installed-tests"

install -Dm644 "$SRC/AppStream-$version/COPYING" "$PKG/usr/share/licenses/$name/COPYING"

Programs: appstreamcli.

Libraries: libAppStreamQt.so, libappstream-compose.so, libappstream.so.

Directories: /usr/include/AppStreamQt, /usr/include/appstream, /usr/include/appstream-compose, /usr/lib/ascompose, /usr/lib/cmake/AppStreamQt, /usr/share/appstream, /usr/share/licenses/appstream.

The release tarball wraps its tree as ./AppStream-<version>/, so kpkg’s strip of one component leaves it one level down, and build.sh changes into that directory first.

build.sh removes /usr/share/installed-tests, test definitions the build installs whatever the test options say.

libvips sits on the same phase boundary as this port: compose needs it at build time, so it is built no later than this port’s phase.