# SliTaz package receipt.

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

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

# Handle multiarch compilation.
case "$ARCH" in
	arm)
		DEPENDS="slitaz-boot-scripts dialog gettext-base"
		BUILD_DEPENDS="" ;;
esac

# 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()
{
	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
	chown -R root.root $fs
}
