# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=xdg-desktop-portal-gtk pkgver=1.6.0 pkgrel=3 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="xdg-desktop-portal" makedepends="gtk+3.0-dev dbus-dev gnome-desktop-dev" subpackages="$pkgname-lang" source="https://github.com/flatpak/xdg-desktop-portal-gtk/releases/download/$pkgver/xdg-desktop-portal-gtk-$pkgver.tar.xz " prepare() { default_prepare sed 's|/usr/bin/sh|/bin/sh|' \ -i compile \ -i missing \ -i install-sh \ -i depcomp \ -i config.sub \ -i config.guess } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var make } check() { make check } package() { make DESTDIR="$pkgdir" install rm -rf "$pkgdir"/usr/lib/systemd } sha512sums="97111e0c14a8cb54d88d0dd8142003b3f1a60e156131cce77deec0f43c936a110eda24c1e8efbb555dad0ad5aafe392d8c5afab80ea96166f616e6255371adc8 xdg-desktop-portal-gtk-1.6.0.tar.xz"