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

251.3. libportal-0.11.0

Client library for the XDG desktop portals, with GTK 3 and GTK 4 parent windows

0.11.0-1 · LGPL-3.0-only · 1.0 SBU · 823.3 KiB, 56 files · 43_toolkits, 337 of 344 · ports/core/xdg/libportal

Homepage: https://github.com/flatpak/libportal

Depends on: meson, glib, gtk3, gtk4, gobject-introspection, glib-introspection, vala.

Required by (1): gthumb.

Sources: libportal-0.11.0.tar.xz (116.8 KiB). Every step kpkg takes applies to this port.

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

build.sh:

meson setup build \
	--prefix=/usr --sysconfdir=/etc --libdir=lib \
	--buildtype=release \
	--wrap-mode=nodownload \
	-Dbackend-gtk3=enabled \
	-Dbackend-gtk4=enabled \
	-Dbackend-qt5=disabled \
	-Dbackend-qt6=disabled \
	-Dintrospection=true \
	-Dvapi=true \
	-Ddocs=false \
	-Dtests=false \
	-Dportal-tests=false
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

Libraries: libportal-gtk3.so, libportal-gtk4.so, libportal.so.

Directories: /usr/include/libportal, /usr/include/libportal-gtk3, /usr/include/libportal-gtk4, /usr/share/licenses/libportal.