# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=dunst
pkgver=1.12.2
pkgrel=0
pkgdesc="Customizable and lightweight notification-daemon"
url="https://dunst-project.org/"
license="BSD-3-Clause"
arch="all"
depends="dunstify"
makedepends="libxscrnsaver-dev libxinerama-dev libxrandr-dev
	libnotify-dev dbus-dev wayland-dev perl pango-dev wayland-protocols"
checkdepends="dbus librsvg bash ttf-dejavu"
subpackages="
	$pkgname-doc
	$pkgname-bash-completion
	$pkgname-fish-completion
	$pkgname-zsh-completion
	dunstify
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/dunst-project/dunst/archive/v$pkgver.tar.gz"

build() {
	make all dunstify
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" SYSCONFDIR=/etc PREFIX=/usr install
}

dunstify() {
	pkgdesc="notify-send compatible command with additional features"
	amove usr/bin/dunstify
}

sha512sums="
f4fabcc5e260cf2dbd16eecd29129df24125ff1444d724202b835415242ed92b9857d42b23ad1e03c6cadd98de7b7ebd5ce20a0e41162baf55b15a71cb90b768  dunst-1.12.2.tar.gz
"
