aboutsummaryrefslogtreecommitdiffstats
path: root/community/xdg-desktop-portal-wlr/APKBUILD
blob: a0e0e0b01c739b00db19a4eb74054a3a1475842c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=xdg-desktop-portal-wlr
pkgver=0.6.0
pkgrel=1
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
	meson
	pipewire-dev
	scdoc
	wayland-protocols-dev
	wlroots-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
	"

build() {
	abuild-meson build \
		-Dsd-bus-provider=basu
	meson compile ${JOBS:+-j ${JOBS}} -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="
e325c2de2a98ffc4612da3492138843b6c9927e536f52f7a87e794380c099f84ab8d344ee989bf88e71faaad2e5300fc31ac74058cea5040654ac74ce270ee53  xdg-desktop-portal-wlr-0.6.0.tar.gz
cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e  config
"