# Contributor: Sodface <sod@sodface.com>
# Maintainer: Sodface <sod@sodface.com>
pkgname=cagebreak
pkgver=3.0.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="
1eba47cef77ce730b5d9728403945c4df1f52778575b4dbc71c749a5d27277436ddeadd805e1312dfc286ab3257242c5fa94b4888c444f5f5e7fdec785113010  cagebreak-3.0.0.tar.gz
"
