# Template file for 'dunst'
pkgname=dunst
version=1.13.2
revision=1
build_style=gnu-makefile
make_check_target=test
make_use_env=yes
make_build_args="SYSTEMD=0 WAYLAND=$(vopt_if wayland 1 0) SYSCONFDIR=/etc"
make_install_args="$make_build_args"
hostmakedepends="perl pkg-config"
makedepends="gdk-pixbuf-devel libXScrnSaver-devel libXinerama-devel libXrandr-devel
 libxdg-basedir-devel libnotify-devel $(vopt_if wayland 'wayland-devel wayland-protocols')
 pango-devel"
checkdepends="dbus dejavu-fonts-ttf"
conf_files="/etc/dunst/dunstrc"
short_desc="Lightweight and customizable notification daemon"
maintainer="Rodrigo Oliveira <mdkcore@qtrnn.io>"
license="BSD-3-Clause"
homepage="https://dunst-project.org"
changelog="https://raw.githubusercontent.com/dunst-project/dunst/master/CHANGELOG.md"
distfiles="https://github.com/dunst-project/dunst/archive/v${version}.tar.gz"
checksum=c68645cecef4a45840cd67c19a18a3a21ecae6b331e9864c2b745c31aee5fc85

build_options="wayland"
build_options_default="wayland"

post_install() {
	vlicense LICENSE
	vcompletion completions/dunst.bashcomp bash
	vcompletion completions/dunstify.bashcomp fish
	vcompletion completions/dunstctl.bashcomp bash
	vcompletion completions/dunst.fishcomp fish
	vcompletion completions/dunstify.fishcomp fish
	vcompletion completions/dunstctl.fishcomp fish
	vcompletion completions/_dunst.zshcomp zsh
	vcompletion completions/_dunstify.zshcomp fish
	vcompletion completions/_dunstctl.zshcomp zsh
}
