# Description: A rio-like wayland compositor (z3bra fork)
# URL:         https://git.sr.ht/~sircmpwn/wio
# Maintainer:  Willy Goiffon, contact at z3bra dot org
# Depends on:  wlroots

name=wio
version=git-237d760
release=2
source=

gitsource=https://git.sr.ht/~z3bra/wio

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
	ninja -C build
	DESTDIR=$PKG ninja -C build install
	chmod a+s $PKG/usr/bin/wio
}
