# Maintainer: Maarten van Gompel <proycon@anaproy.nl>
pkgname=wf-shell
pkgver=0.9.0
pkgrel=0
pkgdesc="A GTK3-based panel for wayfire"
url="https://wayfire.org"
arch="all"
license="MIT"
install="$pkgname.post-install"
makedepends="
	meson
	wayfire-dev
	gtk-layer-shell-dev
	libdbusmenu-gtk3-dev
	pulseaudio-dev
	alsa-lib-dev
	gtkmm3-dev
	"
options="!check" # no testsuite
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/WayfireWM/wf-shell/releases/download/v$pkgver/wf-shell-$pkgver.tar.xz"

build() {
	abuild-meson -Dpulse=enabled -Dwayland-logout=true . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	install -Dm644 wf-shell.ini.example "$pkgdir"/usr/share/wf-shell/wf-shell.ini.example
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}

sha512sums="
dceb0234302ceb51ac23576752d65cf122755bd044bc98e4ca92e0b8e6715063cdebdf35e82e5dc033effc288228622886e1a0e25b4bd788f6d32f8b189c1cfe  wf-shell-0.9.0.tar.xz
"
