# Maintainer:
pkgname=xisxwayland
pkgver=2
pkgrel=1
pkgdesc="Detect if X is XWayland"
url="https://gitlab.freedesktop.org/xorg/app/xisxwayland"
arch="all"
license="MIT"
makedepends="
	libx11-dev
	libxrandr-dev
	meson
	"
subpackages="$pkgname-doc"
source="https://xorg.freedesktop.org/archive/individual/app/xisxwayland-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile -C output
}

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

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

sha512sums="
b89e19c85a5cd7e62a52e22772f80f03bfea069e31412ca11ac38174c4a2994be559e9d5fb49e6d1921b3f1b06ee71b50ede48990a1e7804a96207b08fc7827f  xisxwayland-2.tar.xz
"
