# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=wlrctl
pkgver=0.2.2
pkgrel=0
pkgdesc="Utility for miscellaneous wlroots extensions"
url="https://git.sr.ht/~brocellous/wlrctl"
license="MIT"
arch="all"
makedepends="meson scdoc libxkbcommon-dev wayland-dev"
subpackages="$pkgname-doc $pkgname-zsh-completion"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~brocellous/wlrctl/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # no test suite

build() {
	abuild-meson \
		-Dwerror=false \
		. output
	meson compile -C output
}

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

sha512sums="
f4f9593e2de70e932bfa7fb3b203caba368b4322cb8aad54f3bc2365c3cfc18c9ebe0836bd239da4a7ce641a96001b2ed0d8d4f7d234124ffe2d8aa7c499e701  wlrctl-0.2.2.tar.gz
"
