# Description: A kiosk compositor for wayland
# URL:         https://github.com/Hjdskes/cage
# Maintainer:  Willy Goiffon, contact at z3bra dot org
# Depends on:  wlroots

name=cage
version=git-b21f9c6
release=2
source=

gitsource=git://github.com/Hjdskes/cage

build() {
	cd $PKGMK_SOURCE_DIR

	if cd $name; then
		git reset --hard
		git pull $gitsource
	else
		git clone $gitsource $name
		cd $name
	fi

	git checkout $sversion

	meson build --prefix=/usr -Dxwayland=true
	ninja -C build
	DESTDIR=$PKG ninja -C build install
	chmod a+s $PKG/usr/bin/cage
}
