# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=avizo
pkgver=1.3
pkgrel=0
pkgdesc="A neat notification daemon"
url="https://github.com/misterdanb/avizo"
arch="all"
license="GPL-3.0-only"
makedepends="
	gobject-introspection-dev
	gtk+3.0-dev
	gtk-layer-shell-dev
	meson
	vala
	"
subpackages="$pkgname-scripts::noarch"
source="https://github.com/misterdanb/avizo/archive/$pkgver/avizo-$pkgver.tar.gz
	unbundle-images.patch
	fix-bashism.patch
	"
options="!check"  # no tests provided

build() {
	abuild-meson . output
	meson compile -C output
}

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

scripts() {
	pkgdesc="Scripts to control sound volume and display backlight integrated with Avizo"
	depends="$pkgname brightnessctl pamixer"

	amove usr/bin/lightctl
	amove usr/bin/volumectl
}

sha512sums="
c8b56555fe2b6071d919fccc51cc661f198b013df2ccc988641f1d57042e5a23cb94330ca1f3f84e3f8297815dc350bab6ca2de70826a0bed8da30cf958b774a  avizo-1.3.tar.gz
ff6295ce74c888dd510e68342dbdb1b6af1fbca7e3f86a475568645706269e2bbfc861171d0bff693382c548e358b00c52cfaf0a3d55f013a5e71a85cd118cc2  unbundle-images.patch
0120827834d196e53ca3deccc942293bdfcdbd7c0d1ae176afff34b14a04d402aa0380b940cb22b6ec26f9ecc9ed8b017f40befd6314efe5d327fa9233ef1365  fix-bashism.patch
"
