# Contributor: Marian Buschsieweke # Maintainer: Marian Buschsieweke pkgname=xdg-desktop-portal-wlr pkgver=0.7.0 pkgrel=0 pkgdesc="wlroots implementation of xdg-desktop-portal" url="https://github.com/emersion/xdg-desktop-portal-wlr" # riscv64: blocked by xdg-desktop-portal # s390x: blocked by pipewire, xdg-desktop-portal arch="all !riscv64 !s390x" license="MIT" depends="xdg-desktop-portal" makedepends=" basu-dev inih-dev mesa-dev meson pipewire-dev scdoc wayland-dev wayland-protocols-dev xdg-desktop-portal-dev " options="!check" # no tests provided subpackages="$pkgname-doc $pkgname-dbg" source="https://github.com/emersion/xdg-desktop-portal-wlr/releases/download/v$pkgver/xdg-desktop-portal-wlr-$pkgver.tar.gz config " # useful since people pulling in xdg-desktop-portal will want this backend install_if="xdg-desktop-portal wlroots" build() { abuild-meson \ -Db_lto=true \ -Dsd-bus-provider=basu \ . build meson compile -C build } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C build rm -rf "$pkgdir"/usr/lib/systemd install -Dm644 "$srcdir"/config "$pkgdir"/etc/xdg/xdg-desktop-portal-wlr/config } sha512sums=" 7efb3b66130f2f8ef8538ced3a9785bbae8382bbb9171fb4b6496567e39a69cd8b6e687f1b18b5eb90be175bf7c0737c3a51daa3eef784f88c4ee0bf70ad6d87 xdg-desktop-portal-wlr-0.7.0.tar.gz cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e config "