# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=wayland-protocols
pkgver=1.44
pkgrel=0
pkgdesc="Protocols and protocol extensions complementing the Wayland core protocol"
url="https://wayland.freedesktop.org"
arch="noarch"
license="MIT"
provides="$pkgname-dev=$pkgver-r$pkgrel"
makedepends="meson wayland-dev"
source="https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/$pkgver/downloads/wayland-protocols-$pkgver.tar.xz"

case "$CARCH" in
ppc64le)
	# xdg_toplevel_interface: symbol not found in a test
	options="$options !check"
	;;
esac

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="
8714e0bedb394c01164b9f4d839daf014f130c79782e2695a304efbe1c8ea7b1e8ef01663fec340df485b179d2bfdb3bad5fba6474d6cb24b90a622d921b419b  wayland-protocols-1.44.tar.xz
"
