# SliTaz package receipt.

PACKED_SIZE="24.0K"
UNPACKED_SIZE="56.0K"
PACKAGE="915resolution"
VERSION="0.5.3"
CATEGORY="system-tools"
SHORT_DESC="Intel video BIOS hack to support certain resolutions"
MAINTAINER="erjo@slitaz.org"
LICENSE="PublicDomain"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://web.archive.org/web/20210828084127/http://915resolution.mango-lang.org/"
WGET_URL="https://web.archive.org/web/20210828014220if_/http://915resolution.mango-lang.org/$TARBALL"
TAGS="widescreen resolution"

DEPENDS=""

# What is the latest version available today?
current_version()
{
	wget -O - $WEB_SITE 2>/dev/null | \
	sed '/current/!d;s|.*, ||;q'
}

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

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