# SliTaz package receipt.

PACKAGE="fxload"
VERSION="0.0.20020411"
CATEGORY="system-tools"
SHORT_DESC="Utility to load xorcom astribank channel bank."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="${PACKAGE}_${VERSION}.orig.tar.gz"
WEB_SITE="http://www.xorcom.com/"
WGET_URL="http://updates.xorcom.com/astribank/$PACKAGE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	ln -s fxload-*_* $src
	cd $src
	mkdir -p _pkg/usr/share/usb
	cp a3load.hex _pkg/usr/share/usb || return 1
	[ -f $SOURCES_REPOSITORY/$PACKAGE ] && cp $SOURCES_REPOSITORY/$PACKAGE .
	if [ ! -f $PACKAGE ]; then
		wget http://updates.xorcom.com/astribank/$PACKAGE/$PACKAGE ||
			 return 1
		cp $PACKAGE $SOURCES_REPOSITORY
	fi
	chmod +x fxload
	mkdir -p _pkg/usr/bin
	mv fxload _pkg/usr/bin
}

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