wok-6.x annotate openttd/receipt @ rev 24145
ventoy: set arch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 17 10:14:59 2021 +0000 (2021-11-17) |
parents | eccaeaf682e4 |
children | 241fb98cab1c |
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" |
devl547@6024 | 11 WGET_URL="http://us.binaries.openttd.org/binaries/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 |
devl547@6024 | 16 # Rules to configure and make the package. |
devl547@6024 | 17 compile_rules() |
devl547@6024 | 18 { |
devl547@6024 | 19 ./configure \ |
devl547@6024 | 20 --prefix-dir=/usr \ |
devl547@6024 | 21 --binary-dir=/usr/games \ |
devl547@6024 | 22 --man-dir=/usr/share/man \ |
devl547@6024 | 23 --enable-strip \ |
devl547@6024 | 24 --with-zlib \ |
devl547@6024 | 25 --with-liblzo2 \ |
devl547@6024 | 26 --with-png \ |
devl547@6024 | 27 --with-sdl \ |
devl547@6024 | 28 --without-freetype \ |
devl547@6024 | 29 $CONFIGURE_ARGS && |
devl547@6024 | 30 make |
devl547@6024 | 31 } |
devl547@6024 | 32 |
devl547@6024 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
devl547@6024 | 34 genpkg_rules() |
devl547@6024 | 35 { |
devl547@6024 | 36 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications $fs/usr/share/games/openttd $fs/usr/games |
devl547@6024 | 37 cp -a $src/bin/openttd $fs/usr/games |
devl547@6024 | 38 cp -a $src/bin/ai $fs/usr/share/games/openttd |
devl547@6024 | 39 cp -a $src/bin/data $fs/usr/share/games/openttd |
devl547@6024 | 40 cp -a $src/bin/gm $fs/usr/share/games/openttd |
devl547@6024 | 41 cp -a $src/bin/lang $fs/usr/share/games/openttd |
devl547@6024 | 42 cp -a $src/bin/scripts $fs/usr/share/games/openttd |
devl547@6024 | 43 cp $src/media/$PACKAGE.32.png $fs/usr/share/pixmaps |
devl547@6024 | 44 cp $src/media/$PACKAGE.desktop $fs/usr/share/applications |
devl547@6024 | 45 } |