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"
-Dsystemd=false— No systemd support; KDOS has no systemd.-Dstemming=true— Stem search terms with snowball’slibstemmer, so a search for “editing” finds “editor”.-Dqt=true— BuildlibAppStreamQt, the Qt 6 binding Discover and Plasma’s application launchers read software metadata through. It makes qt6-qtbase a dependency, which places the port in43_toolkits, after the toolkits.-Dcompose=true— Buildlibappstream-compose, theappstreamcli composesubcommand and its media worker,asc-mediaworker, which renders icons, screenshots and font samples. Compose turns the metainfo and desktop entries of a directory tree into a catalogue with its icon cache, for anyone building a catalogue of their own; the image build does not use it. The media worker requires libvips, cairo, pango, fontconfig and freetype2.-Dvapi=false— No Vala bindings.-Dgir=true— Build the GObject introspection data, so Python and other bindings can load the library; this is why gobject-introspection and glib-introspection are independs.-Dtools=true— Buildappstreamcli.-Dzstd-support=true— Read and write zstd-compressed catalogues with zstd.-Dblake3-support=false— Hash compose’s caches with GLib’s SHA-256 instead of BLAKE3, whose library is not a port.-Dapt-support=false— No Debian APT integration.-Ddisplay-detection=wayland— Measure the screen through Wayland when a component declares a display-size requirement, and never through X11.-Dbash-completion=true— Installappstreamcli’s bash completion.-Ddocs=false— With-Dapidocs=falseand-Dinstall-docs=false: build and install neither the specification nor the API reference.-Dman=true— Buildappstreamcli(1)from its DocBook 5 source withxsltprocfrom libxslt. The configure runsxsltproc --noneton the namespaced manual-page stylesheet’s canonical URL and stops when it does not resolve; docbook-xsl installs that stylesheet and maps the URL to it in the XML catalogue.
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.