# SliTaz package receipt.

PACKAGE="yad"
VERSION="0.17.1.1"
CATEGORY="utilities"
SHORT_DESC="Display graphical dialogs from shell scripts or command line"
MAINTAINER="devl547@gmail.com"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="http://code.google.com/p/yad/"
WGET_URL="http://yad.googlecode.com/files/$TARBALL"

DEPENDS="gtk+"
BUILD_DEPENDS="intltool gettext pkg-config glib-dev gtk+-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--enable-icon-browser &&
	make && make install
}

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