wok-6.x view openttd/receipt @ rev 24593
updated geos and geos-dev (3.8.0 -> 3.10.2)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 01 13:55:15 2022 +0100 (2022-03-01) |
parents | be1594cae466 |
children | 9981cfce1dd8 |
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="http://us.binaries.openttd.org/binaries/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 }