# SliTaz package receipt. PACKAGE="openttd-opengfx" VERSION="0.3.3" CATEGORY="games" SHORT_DESC="OpenGFX data files for OpenTTD." MAINTAINER="devl547@gmail.com" LICENSE="GPL2" SOURCE="opengfx" TARBALL="$SOURCE-$VERSION.zip" WEB_SITE="http://bundles.openttdcoop.org/opengfx/" WGET_URL="$WEB_SITE/releases/$VERSION/$TARBALL" PROVIDE="opengfx" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed '/releases\/[0-9]/!d;s|.*releases/||;s|/.*||' | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { cd $src } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/games/openttd/data cp $src/*.grf $fs/usr/share/games/openttd/data cp $src/opengfx.obg $fs/usr/share/games/openttd/data }