# SliTaz package receipt.

PACKAGE="Xdialog"
VERSION="2.3.1"
CATEGORY="x-window"
SHORT_DESC="Like 'dialog' or 'cdialog', but for X using GTK+."
MAINTAINER="rcx@zoominternet.net"
DEPENDS="glibc-base glib libgio expat zlib fontconfig freetype gtk+ atk \
cairo pango pixman libpng libxcb xcb-util xorg-libX11 xorg-libXau \
xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp \
xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender"
BUILD_DEPENDS="slitaz-toolchain autoconf automake m4 gettext gtk+ gtk+-dev"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://xdialog.free.fr/"
WGET_URL="http://xdialog.free.fr/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	autoconf  &&
	./configure \
		--with-gtk2 \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		$CONFIGURE_ARGS  &&
	make  &&
	make DESTDIR=$PWD/_pkg install
}

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