# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=dunst
pkgver=1.2.0
pkgrel=0
pkgdesc="A customizable and lightweight notification-daemon"
url="http://knopwob.org/dunst/"
arch="all"
license="BSD"
makedepends="libxscrnsaver-dev libxdg-basedir-dev libxft-dev
	libxinerama-dev dbus-dev freetype-dev glib-dev pango-dev
	cairo-dev gtk+2.0-dev libxrandr-dev"
subpackages="$pkgname-doc"
source="http://knopwob.org/public/dunst-release/$pkgname-$pkgver.tar.bz2"
source="$pkgname-$pkgver.tar.gz::https://github.com/dunst-project/dunst/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

check() {
	cd "$builddir"
	make test
}

build() {
	cd "$builddir"
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="223c8aae61574770a76bff84723643a3c03d3d9a8f4094bc4e92e16826703e7c0a7c3327945db8469b8dcc48fe5cfaba51e6724149e6571a7ffc1716656e30f3  dunst-1.2.0.tar.gz"