# xdg-desktop-portal - Sandboxed application portal
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=xdg-desktop-portal
version=1.22.0
release=1
desc="Sandboxed application portal"
url="https://github.com/flatpak/xdg-desktop-portal"
license="LGPL-2.1-or-later"
depend="glibc glib dbus fuse3 pipewire"
makedepend="meson ninja"
source="https://github.com/flatpak/xdg-desktop-portal/releases/download/1.22.0/xdg-desktop-portal-1.22.0.tar.xz"
sha256="SKIP"

build() {
	cd "xdg-desktop-portal-1.22.0"
	meson setup build \
		--prefix=/usr \
		--libdir=/usr/lib \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--buildtype=release \
		--wrap-mode=nodownload \
		-Db_lto=true
	ninja -C build -j"$JOBS"
}

package() {
	cd "xdg-desktop-portal-1.22.0"
	DESTDIR="$pkgdir" ninja -C build install
}
