# Contributor: Danct12 <danct12@disroot.org>
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=wayfire
pkgver=0.8.1
pkgrel=1
pkgdesc="Compiz-clone Wayland compositor"
url="https://wayfire.org"
arch="all"
license="MIT"
install="$pkgname.post-install"
makedepends="
	meson
	wlroots0.17-dev
	glm-dev
	wf-config-dev
	cairo-dev
	libxml2-dev
	wayland-protocols
	pango-dev
	nlohmann-json
	"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/WayfireWM/wayfire/releases/download/v$pkgver/wayfire-$pkgver.tar.xz"
options="!check" # no testsuite

build() {
	abuild-meson \
		-Duse_system_wlroots=enabled \
		-Duse_system_wfconfig=enabled \
		. output
	meson compile -C output
}

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

	install -Dm644 wayfire.ini "$pkgdir"/usr/share/wayfire/wayfire.ini.default
	install -Dm644 wayfire.desktop "$pkgdir"/usr/share/wayland-sessions/wayfire.desktop
}

sha512sums="
7bce5656b6a7a7fe53b37492465dee3e591eb386666fdd3d6876f4a589f059510fb2d0c0a326df260ca6a293edf4ba43bb55f813e85d4d2d38d6ef1319280254  wayfire-0.8.1.tar.xz
"
