# SliTaz package receipt.

PACKAGE="xbill"
VERSION="2.1"
CATEGORY="games"
SHORT_DESC="Xbill is a game that tests your reflexes as you seek and destroy all forms of Bill."
MAINTAINER="slaxemulator@gmail.com"
DEPENDS="gtk+ xorg-libXaw lesstif"
BUILD_DEPENDS="gtk+-dev xorg-libXaw-dev lesstif-dev"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.xbill.org/"
WGET_URL="$WEB_SITE/download/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		--localstatedir=/var/games \
		--enable-gtk \
		$CONFIGURE_ARGS &&
	make && make DESTDIR=$DESTDIR install
}

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