# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=xdg-desktop-portal pkgver=1.5.4 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="a8a560e08f459ff2ee96180760389ddc773ad3f169ccebe33d3cbeaf1f0d2103f43858b0313e33f4ac60fe098e1cc317f0869b644cec7c387ace7174c91590e0 xdg-desktop-portal-1.5.4.tar.xz"