# Contributor: knuxify # Maintainer: team/gnome pkgname=xdg-desktop-portal-gnome pkgver=44.2 pkgrel=0 pkgdesc="backend implementation for xdg-desktop-portal for the GNOME desktop environment" url="https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome" arch="all" license="LGPL-2.1-or-later" depends="xdg-desktop-portal xdg-desktop-portal-gtk" makedepends=" gnome-desktop-dev gsettings-desktop-schemas-dev gtk4.0-dev libadwaita-dev meson xdg-desktop-portal-dev " subpackages="$pkgname-lang" source="https://download.gnome.org/sources/xdg-desktop-portal-gnome/${pkgver%.*}/xdg-desktop-portal-gnome-$pkgver.tar.xz" options="!check" # no tests build() { abuild-meson \ -Db_lto=true \ -Dsystemduserunitdir=/DELETEME \ . output meson compile -C output } check() { meson test --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output rm -rf "$pkgdir"/DELETEME } sha512sums=" 3cf70a8523e72b9d523d3ada38b48f654259b13b91b6a20d45c68c0a353dc78b6fdd599dfd6d9385ef67c4f71728df976dc38b02c8668a5d698f6f6d3728dee7 xdg-desktop-portal-gnome-44.2.tar.xz "