# Contributor: Sodface <sod@sodface.com>
# Maintainer: Sodface <sod@sodface.com>
pkgname=cagebreak
pkgver=2.4.0
pkgrel=0
pkgdesc="Wayland tiling compositor inspired by Ratpoison"
url="https://github.com/project-repo/cagebreak"
license="MIT"
arch="all"
options="!check" # no test suite
depends="xwayland"
makedepends="
	libevdev-dev
	meson
	pango-dev
	scdoc
	wayland-protocols
	wlroots-dev
	"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/project-repo/cagebreak/archive/$pkgver.tar.gz"

build() {
	# defaults to debug build without buildtype=release
	abuild-meson \
		--buildtype=release \
		-Dman-pages=true \
		-Dxwayland=true \
		build
	meson compile -C build
}

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

sha512sums="
7deabdc58d64efc30b636edf80adba8826246a307f3de1bbf9e3d13116a6dbd570e759a8981642fc41a6e4b1a54ae23e1cc06322baf55a746566519ca8634dd6  cagebreak-2.4.0.tar.gz
"
