# SliTaz package receipt.

PACKAGE="xfce-utils"
VERSION="4.8.1"
CATEGORY="x-window"
SHORT_DESC="Xfce utilities"
MAINTAINER="erjo@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.xfce.org"
WGET_URL="http://archive.xfce.org/src/xfce/$PACKAGE/${VERSION%.*}/$TARBALL"

DEPENDS="libxfce4util libxfce4ui startup-notification dbus-glib"
BUILD_DEPENDS="libxfce4util-dev libxfce4ui-dev intltool startup-notification-dev \
 util-linux-ng-uuid-dev dbus-glib-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--enable-dbus \
		--disable-debug \
		--with-browser=browser \
  		--with-terminal=xterm \
		--mandir=/usr/share/man $CONFIGURE_ARGS && \
	make && make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr $fs/usr/share/locale
	cp -a $_pkg/usr/bin $fs/usr
	cp -a $_pkg/etc $fs/
	cp -a $_pkg/usr/share/icons $fs/usr/share
	cp -a $_pkg/usr/share/dbus* $fs/usr/share
	cp -a $_pkg/usr/share/icons $fs/usr/share
	cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
	
	#Fix perms
	chmod 755 $fs/usr/bin/*
}