# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=xfce4-notifyd
pkgver=0.4.2
pkgrel=0
pkgdesc="Notification service for the XFCE desktop environment"
url="https://xfce.org"
arch="all"
license="GPL-2.0-only AND GPL-2.0+"
makedepends="intltool libice-dev gtk+3.0-dev libxfce4util-dev libxfce4ui-dev
	xfce4-panel-dev libnotify-dev dbus-glib-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
langdir="/usr/lib/locale"
source="http://archive.xfce.org/src/apps/xfce4-notifyd/0.4/xfce4-notifyd-$pkgver.tar.bz2"
sha512sums="1cabf478928cbcc13e9f03b2540470c5568bc665b196a8617a0e3b52ce4fe3bd9fdb5e199c4e52afe51c4edab8ba949c4551f65ce77c5fae7fddccd0086fb601  xfce4-notifyd-0.4.2.tar.bz2"

build() {
	cd "$builddir"
	LIBS="-lX11" ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

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

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