wok annotate openttd/receipt @ rev 25643
Fix mouse issue on mc with ncurses6
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Jan 12 14:14:28 2024 +0100 (10 months ago) |
parents | 241fb98cab1c |
children |
rev | line source |
---|---|
devl547@6024 | 1 # SliTaz package receipt. |
devl547@6024 | 2 |
devl547@6024 | 3 PACKAGE="openttd" |
slaxemulator@10224 | 4 VERSION="1.1.0" |
devl547@6024 | 5 CATEGORY="games" |
devl547@6024 | 6 SHORT_DESC="OpenTTD is a clone of Transport Tycoon Deluxe." |
devl547@6024 | 7 MAINTAINER="devl547@gmail.com" |
pascal@15590 | 8 LICENSE="GPL2" |
slaxemulator@10548 | 9 TARBALL="$PACKAGE-$VERSION-source.tar.gz" |
pascal@21302 | 10 WEB_SITE="https://www.openttd.org" |
pascal@24990 | 11 WGET_URL="https://cdn.openttd.org/openttd-releases/$VERSION/$TARBALL" |
devl547@6024 | 12 |
pascal@15590 | 13 DEPENDS="libsdl lzo zlib libpng icu" |
pascal@18407 | 14 BUILD_DEPENDS="libsdl-dev lzo-dev zlib-dev libpng-dev liblzma-dev icu-dev" |
pascal@15590 | 15 |
pascal@24453 | 16 # What is the latest version available today? |
pascal@24453 | 17 current_version() |
pascal@24453 | 18 { |
pascal@24453 | 19 wget -O - https://www.openttd.org/downloads/openttd-releases/latest 2>/dev/null | \ |
pascal@24453 | 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q |
pascal@24453 | 21 } |
pascal@24453 | 22 |
devl547@6024 | 23 # Rules to configure and make the package. |
devl547@6024 | 24 compile_rules() |
devl547@6024 | 25 { |
devl547@6024 | 26 ./configure \ |
devl547@6024 | 27 --prefix-dir=/usr \ |
devl547@6024 | 28 --binary-dir=/usr/games \ |
devl547@6024 | 29 --man-dir=/usr/share/man \ |
devl547@6024 | 30 --enable-strip \ |
devl547@6024 | 31 --with-zlib \ |
devl547@6024 | 32 --with-liblzo2 \ |
devl547@6024 | 33 --with-png \ |
devl547@6024 | 34 --with-sdl \ |
devl547@6024 | 35 --without-freetype \ |
devl547@6024 | 36 $CONFIGURE_ARGS && |
devl547@6024 | 37 make |
devl547@6024 | 38 } |
devl547@6024 | 39 |
devl547@6024 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
devl547@6024 | 41 genpkg_rules() |
devl547@6024 | 42 { |
devl547@6024 | 43 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications $fs/usr/share/games/openttd $fs/usr/games |
devl547@6024 | 44 cp -a $src/bin/openttd $fs/usr/games |
devl547@6024 | 45 cp -a $src/bin/ai $fs/usr/share/games/openttd |
devl547@6024 | 46 cp -a $src/bin/data $fs/usr/share/games/openttd |
devl547@6024 | 47 cp -a $src/bin/gm $fs/usr/share/games/openttd |
devl547@6024 | 48 cp -a $src/bin/lang $fs/usr/share/games/openttd |
devl547@6024 | 49 cp -a $src/bin/scripts $fs/usr/share/games/openttd |
devl547@6024 | 50 cp $src/media/$PACKAGE.32.png $fs/usr/share/pixmaps |
devl547@6024 | 51 cp $src/media/$PACKAGE.desktop $fs/usr/share/applications |
devl547@6024 | 52 } |