# Contributor: Zach DeCook <zachdecook@librem.one>
maintainer="Zach DeCook <zachdecook@librem.one>"
pkgname=hyprland-protocols
pkgver=0.4.0
pkgrel=0
pkgdesc="Wayland protocol extensions for Hyprland"
url="https://github.com/hyprwm/hyprland-protocols"
arch="noarch"
license="BSD-3-Clause"
source="https://github.com/hyprwm/hyprland-protocols/archive/v$pkgver/hyprland-protocols-v$pkgver.tar.gz"
makedepends="meson"
subpackages="$pkgname-doc"

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

check() {
	meson test --no-rebuild -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}


sha512sums="
cc32cae0840c49a7f128150be99b3584d5e5eb417a321ae7c917a859715e263c199001f73e7642348e2ae670ed4fffeecab9649144920d90999f46e9bfb8f938  hyprland-protocols-v0.4.0.tar.gz
"
