# SliTaz package receipt.

PACKAGE="xchat"
VERSION="2.8.8"
CATEGORY="network"
SHORT_DESC="IRC client using GTK+"
MAINTAINER="lenios@slitaz.org"
DEPENDS="gtk+ dbus openssl gettext dbus-glib xorg-libXdamage"
BUILD_DEPENDS="gtk+-dev dbus-dev openssl shared-mime-info"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.xchat.org/"
WGET_URL="http://www.xchat.org/files/source/2.8/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    #patch -p1 -i $stuff/xc286-smallfixes.diff
	# gentoo patch for GTK > 2.12
    #patch -p1 -i $stuff/xchat-2.8.6-gtk+-2.13.patch 
    ./configure  --prefix=/usr \
	  --infodir=/usr/share/info \
	  --mandir=/usr/share/man \
	  --disable-plugin \
	  --disable-tcl \
	  --enable-spell=static \
	  --enable-ipv6 \
      $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr \
    	$fs/usr/share
    cp -a $_pkg/usr/bin $fs/usr
   # cp -a $_pkg/usr/share/dbus-1 $fs/usr/share
}