# SliTaz package receipt.

PACKAGE="915resolution"
VERSION="0.5.3"
CATEGORY="system-tools"
SHORT_DESC="Widescreen support; modify video BIOS of the 800 and 900 series Intel graphics chipsets"
MAINTAINER="erjo@slitaz.org"
DEPENDS=""
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://915resolution.mango-lang.org/"
WGET_URL="$WEB_SITE/$TARBALL"
TAGS="widescreen resolution"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	for i in widescreen-resolution cedarview ; do
		[ -f done.$i ] && continue
		patch -p0 < $stuff/$PACKAGE-$VERSION-$i.patch
		touch done.$i
	done
	make clean && make	
}

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