# SliTaz package receipt.

PACKAGE="xfe"
VERSION="1.32.4"
CATEGORY="system-tools"
SHORT_DESC="Xfe File manager and utility using Fox toolkit."
MAINTAINER="pankso@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://roland65.free.fr/xfe/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
SUGGESTED="adie calculator shutterbug xfe-extras"

DEPENDS="libpng jpeg tiff xorg-libXft fox"
BUILD_DEPENDS="$DEPENDS libpng-dev jpeg-dev tiff-dev xorg-libXft-dev fox-dev intltool"

GENERIC_MENUS=no


# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure $CONFIGURE_ARGS && make && make install
	
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/bin $fs/usr/share/xfe/icons
	cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
	cp -a $install/usr/share/xfe/xferc $fs/usr/share/xfe
	sed -i 's/gnomeblue-theme/tango-theme/' $fs/usr/share/xfe/xferc
	# Tango/Gnome icons theme only
	cp -a $_pkg/usr/share/xfe/icons/tango-theme \
		$fs/usr/share/xfe/icons
	cp -a $_pkg/usr/share/xfe/icons/gnome-theme \
		$fs/usr/share/xfe/icons
		
	# Remove unwanted desktop menus.
#	rm -f $fs/usr/share/applications/xf[i,v,p,w].desktop	
}