# SliTaz package receipt.

PACKAGE="xfdesktop"
VERSION="4.8.2"
CATEGORY="x-window"
SHORT_DESC="Xfce Desktop"
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 libxfcegui4 thunar libexo libglade gamin libnotify"
BUILD_DEPENDS="libxfce4util-dev thunar-dev libexo-dev libxfce4ui-dev libwnck-dev xfconf-dev
 libglade-dev gamin-dev hal-dev xfce4-panel-dev libnotify-dev intltool util-linux-ng-uuid-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr \
	--sysconfdir=/etc \
	--enable-exo \
	--enable-notifications \
	--enable-gio-unix \
	--enable-thunarx \
	--disable-static \
	--libexecdir=/usr/lib/$PACKAGE \
	--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/lib \
		$fs/usr/share/locale \
		$fs/usr/share/xfce4

	cp -a $_pkg/usr/bin $fs/usr
	#~ cp -a $_pkg/etc $fs/
	#~ cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
	#~ cp -a $_pkg/usr/lib $fs/usr
	cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
	cp -a $_pkg/usr/share/applications $fs/usr/share
	#~ cp -a $_pkg/usr/share/desktop-directories $fs/usr/share
	#~ cp -a $_pkg/usr/share/xfce4/panel-plugins $fs/usr/share/xfce4
	
	#~ strip -s $fs/usr/lib/$PACKAGE/xfce4/panel-plugins/*

}