# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=xdg-desktop-portal-gtk pkgver=1.14.1 pkgrel=2 pkgdesc="Gtk implementation of xdg-desktop-portal" url="https://github.com/flatpak/xdg-desktop-portal-gtk" arch="all" license="LGPL-2.1-or-later" depends=" gsettings-desktop-schemas xdg-desktop-portal " makedepends=" dbus-dev gnome-desktop-dev gtk+3.0-dev xdg-desktop-portal-dev " subpackages="$pkgname-lang" source="https://github.com/flatpak/xdg-desktop-portal-gtk/releases/download/$pkgver/xdg-desktop-portal-gtk-$pkgver.tar.xz" options="!check" # no tests provided case "$CARCH" in s390x|armhf) # no gnome shell ;; *) makedepends="$makedepends gnome-shell" _gnome_shell_extras=" --enable-background --enable-screencast --enable-screenshot --enable-wallpaper " ;; esac build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --enable-lockdown \ $_gnome_shell_extras make } package() { make DESTDIR="$pkgdir" install rm -rf "$pkgdir"/usr/lib/systemd } sha512sums=" d8b487e8fc7d8c1f0f41eb3ee28377b2f77af9c65569b5dbaee785ae40c163929da8b13b39b032e25631515cb8e7218129c8bbffe25692e85c7b8e9269024325 xdg-desktop-portal-gtk-1.14.1.tar.xz "