# SliTaz package receipt. PACKAGE="openttd" VERSION="1.1.0" CATEGORY="games" SHORT_DESC="OpenTTD is a clone of Transport Tycoon Deluxe." MAINTAINER="devl547@gmail.com" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION-source.tar.gz" WEB_SITE="https://www.openttd.org" WGET_URL="https://cdn.openttd.org/openttd-releases/$VERSION/$TARBALL" DEPENDS="libsdl lzo zlib libpng icu" BUILD_DEPENDS="libsdl-dev lzo-dev zlib-dev libpng-dev liblzma-dev icu-dev" # What is the latest version available today? current_version() { wget -O - https://www.openttd.org/downloads/openttd-releases/latest 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix-dir=/usr \ --binary-dir=/usr/games \ --man-dir=/usr/share/man \ --enable-strip \ --with-zlib \ --with-liblzo2 \ --with-png \ --with-sdl \ --without-freetype \ $CONFIGURE_ARGS && make } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications $fs/usr/share/games/openttd $fs/usr/games cp -a $src/bin/openttd $fs/usr/games cp -a $src/bin/ai $fs/usr/share/games/openttd cp -a $src/bin/data $fs/usr/share/games/openttd cp -a $src/bin/gm $fs/usr/share/games/openttd cp -a $src/bin/lang $fs/usr/share/games/openttd cp -a $src/bin/scripts $fs/usr/share/games/openttd cp $src/media/$PACKAGE.32.png $fs/usr/share/pixmaps cp $src/media/$PACKAGE.desktop $fs/usr/share/applications }