# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=xdg-desktop-portal pkgver=1.5.2 pkgrel=0 pkgdesc="Desktop integration portal" options="!check" # Requires libportal which has no stable tags url="https://github.com/flatpak/xdg-desktop-portal" arch="all" license="LGPL-2.1-or-later" depends="bubblewrap" makedepends="gettext-dev glib-dev json-glib-dev fontconfig-dev geoclue-dev xmlto flatpak-dev pipewire-dev fuse-dev" checkdepends="dbus" subpackages="$pkgname-lang $pkgname-doc" source="https://github.com/flatpak/xdg-desktop-portal/releases/download/$pkgver/xdg-desktop-portal-$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 \ --disable-libportal # Unpackaged, has no stable tags make } check() { make check } package() { make DESTDIR="$pkgdir" install # We don't need this rm -rf "$pkgdir"/usr/lib/systemd mkdir -p "$pkgdir"/usr/lib mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib } sha512sums="3b9d694017178e44c4556ce86d39237db97f1c230a3fd6ad5fed36f30b487981cfc951840337fbc1a52e711dfd3454ad61d1ddd7f2a78fe346f1ed927416ce38 xdg-desktop-portal-1.5.2.tar.xz"