# SliTaz package receipt.

PACKAGE="fwbuilder"
VERSION="5.0.0.3568"
CATEGORY="network"
SHORT_DESC="Firewall management GUI."
MAINTAINER="pascal.bellard@slitaz.org"
WEB_SITE="http://www.fwbuilder.org/"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="libxml2 libxslt zlib libQtGui libQtNetwork libQtCore"
BUILD_DEPENDS="qmake libxslt-dev Qt4-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	sed -i 's/Categories=.*/Categories=GNOME;Application;System;/' src/res/fwbuilder.desktop
	./autogen.sh
	./configure --prefix=/usr --infodir=/usr/share/info \
		--mandir=/usr/share/man \
		$CONFIGURE_ARGS &&
	make &&
	make INSTALL_ROOT=$DESTDIR install
}

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