# Maintainer: Sergey Lukin <sergej.lukin@gmail.com>
pkgname=xfdashboard
pkgver=0.4.0
pkgrel=0
pkgdesc="Maybe a Gnome shell like dashboard for Xfce"
url="http://goodies.xfce.org/projects/applications/xfdashboard/start"
arch="all"
license="GPLv2+"
depends=""
depends_dev="clutter-dev xfconf-dev garcon-dev gtk+3.0-dev libwnck3-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-lang"
source="http://archive.xfce.org/src/apps/${pkgname}/${pkgver%.*}/xfdashboard-${pkgver}.tar.bz2"

_builddir="$srcdir"/xfdashboard-"$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="39e4bfcdce2aa2dcb55019dbbb1dd4a2  xfdashboard-0.4.0.tar.bz2"
sha256sums="4016c97011bf7316c8e365f0f4ff753b8e4e74776f2b25e282efa7675965cb45  xfdashboard-0.4.0.tar.bz2"
sha512sums="d737a65ab27f0d6e49fd24ff7852bd2e00feebd3cce2c1ced5580bb5af1449fad0c593707686b6b83f4fd2e3d7cc318e0778ce404e53240dee53c6aeb9886df0  xfdashboard-0.4.0.tar.bz2"