# SliTaz package receipt.

PACKED_SIZE="88.0K"
UNPACKED_SIZE="560.0K"
PACKAGE="slitaz-tools"
VERSION="1028"
CATEGORY="system-tools"
SHORT_DESC="SliTaz tools provide installer and utils usable on terminal."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL3"
WEB_SITE="http://www.slitaz.org/"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="http://hg.slitaz.org/slitaz-tools/archive/$VERSION.tar.bz2"
HOST_ARCH="i486 arm"

SUGGESTED="slitaz-tools-boxes"
DEPENDS="slitaz-boot-scripts dialog gettext-base slitaz-configs-base"
BUILD_DEPENDS="gettext"
SIBLINGS="slitaz-tools-boxes tazdrop"

# Saved config file by package manager
CONFIG_FILES="
/etc/TZ
/etc/keymap.conf
/etc/locale.conf
/etc/firewall.conf"

# Rules to configure and make the package.
compile_rules()
{
	mkdir -p $DESTDIR/usr/share
	make && make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs
	cp -a $install/* $fs
	chmod 0644 $fs/usr/share/locale/*/*/*.mo
	touch $fs/etc/firewall.conf
	chown -R root.root $fs
}
