makedepends=(python-packaging xorg-fontconfig gdk-pixbuf glib gsettings-desktop-schemas gtk3 xdg-desktop-portal)

description="A backend implementation for xdg-desktop-portal using GTK"
url="https://github.com/flatpak/xdg-desktop-portal-gtk"

packager="Great-OS Team"
maintainer="Great-OS Team"

name="xdg-desktop-portal-gtk"
version="1.15.3"
release=2

source=(https://github.com/flatpak/xdg-desktop-portal-gtk/releases/download/$version/xdg-desktop-portal-gtk-$version.tar.xz)

build() {

  meson setup --prefix=/usr \
              $name-$version \
              build \
              -Dwallpaper=disabled

  ninja -C build
  DESTDIR=$PKG ninja -C build  install

  install -Dm644 /dev/stdin "$PKG/usr/share/xdg-desktop-portal/gtk-portals.conf" <<END
[preferred]
default=gtk
END
}
