# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=swaync
_projname=SwayNotificationCenter
pkgver=0.11.0
pkgrel=0
pkgdesc="Notification daemon with a GTK GUI for notifications and the control center"
url="https://github.com/ErikReider/SwayNotificationCenter"
arch="all"
license="GPL-3.0-only"
depends="dbus"
makedepends="
	gobject-introspection-dev
	granite-dev
	gtk+3.0-dev
	gtk-layer-shell-dev
	json-glib-dev
	libgee-dev
	libhandy1-dev
	meson
	pulseaudio-dev
	sassc
	scdoc
	vala
	"
subpackages="
	$pkgname-doc
	$pkgname-bash-completion
	$pkgname-fish-completion
	$pkgname-zsh-completion
	"
source="https://github.com/ErikReider/SwayNotificationCenter/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_projname-$pkgver"
options="!check"  # no tests defined

build() {
	abuild-meson \
		-Db_lto=true \
		-Dsystemd-service=false \
		. output
	meson compile -C output
}

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

sha512sums="
1fcad5e1c5cfd09d0c8e71fe5b5e6717daed245c127ad405bb0e95722f3a346d78f23d97e0f78a0a35357f1e32551e5149ffc2963959ae6364d709545df15f07  swaync-0.11.0.tar.gz
"
