# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=xdg-desktop-portal pkgver=1.4.2 pkgrel=0 pkgdesc="Desktop integration portal" 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 make } check() { make check } package() { make DESTDIR="$pkgdir" install } sha512sums="9a19dc8f6899a24f8827ce36447316ce74f293abed469be24adfaa16d18deac0b7c5d77f744eed9b540b54cd23145281dacb6811dc52b34180b21d6dc02efc5a xdg-desktop-portal-1.4.2.tar.xz"