# Template file for 'dunst'
pkgname=dunst
version=1.12.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')"
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=8f7664bd4e6083e9604e282145fe5b8dee7655fa0b099a5b682a2549e1f33d32

build_options="wayland"
build_options_default="wayland"

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