# 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.11.0
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"
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
	install -Dm755 dunstify "$pkgdir"/usr/bin/dunstify
}

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

sha512sums="
84c9edccddd183fb867233cb5377115d96735f4c1be84007194ac39dd48d913e5bb021d2952057aecdb978564c2471a8974c4ee4eeccfb188e5345527007a5c4  dunst-1.11.0.tar.gz
"
