# SliTaz package receipt.

PACKAGE="ghex"
VERSION="2.24.0"
CATEGORY="x-window"
SHORT_DESC="GHex is a simple binary editor."
MAINTAINER="samuel_trassare@yahoo.com"
WEB_SITE="http://directory.fsf.org/wiki/Ghex"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="http://ftp.acc.umu.se/pub/GNOME/sources/$PACKAGE/2.24/$TARBALL"

DEPENDS="gtk+ libgnomeui libgnomeprintui libgnome-keyring"
BUILD_DEPENDS="gtk+-dev gnome-doc-utils-dev libgnomeui-dev libbonoboui-dev \
libgnome-dev libbonobo-dev libbonoboui-dev libgnome-keyring-dev \
libgnomeprintui-dev intltool"

# Rules to configure and make the package.
compile_rules()
{
	# GHex2 cannot display help without Yelp.  Removing help references.
	patch -Np1 -i $stuff/ghex2-remove-help.patch
	
	./configure \
		--disable-schemas-install \
		--disable-scrollkeeper \
		$CONFIGURE_ARGS && 
	make && 
	make DESTDIR=$install install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/bin \
		$fs/usr/lib \
		$fs/usr/share
		
	cp -a $install/usr/bin/* $fs/usr/bin
	cp -ar $install/usr/etc $fs/usr
	cp -a $install/usr/lib/*so* $fs/usr/lib
	cp -ar $install/usr/share/applications $fs/usr/share
	cp -ar $install/usr/share/gnome-2.0 $fs/usr/share
	cp -ar $install/usr/share/icons $fs/usr/share
	cp -ar $install/usr/share/locale $fs/usr/share
}