maintainer="Bart Ribbers <bribbers@disroot.org>"
pkgname=xwayland-run
pkgver=0.0.4
pkgrel=0
pkgdesc="A set of small utilities revolving around running XWayland and warious Wayland compositors headless"
url="https://gitlab.freedesktop.org/ofourdan/xwayland-run"
arch="noarch"
license="GPL-2.0-or-later"
depends="
	weston-backend-headless
	weston-shell-desktop
	xauth
	xwayland
	"
makedepends="meson"
subpackages="$pkgname-pyc $pkgname-doc"
source="https://gitlab.freedesktop.org/ofourdan/xwayland-run/-/archive/$pkgver/xwayland-run-$pkgver.tar.gz"

build() {
	abuild-meson \
		-Dcompositor=weston \
		output .
	meson compile -C output
}

check() {
	meson test --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
280edfe833f8e298d48f3e35a7f0a35c2ab408eaaa7e5337464d9c55653cd3d2c4469431842338f4bd13ee545a5ea8092e26f45bebafd98f17eb4c4d5fef01ed  xwayland-run-0.0.4.tar.gz
"
