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