wok-6.x view openttd-opengfx/receipt @ rev 25447

Down firefox-official (77.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 06 16:17:24 2022 +0000 (2022-09-06)
parents 600aaedb561d
children
line source
1 # SliTaz package receipt.
3 PACKAGE="openttd-opengfx"
4 VERSION="0.3.3"
5 CATEGORY="games"
6 SHORT_DESC="OpenGFX data files for OpenTTD."
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="GPL2"
9 SOURCE="opengfx"
10 TARBALL="$SOURCE-$VERSION.zip"
11 WEB_SITE="http://bundles.openttdcoop.org/opengfx/"
12 WGET_URL="$WEB_SITE/releases/$VERSION/$TARBALL"
13 PROVIDE="opengfx"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - ${WGET_URL%/*} 2>/dev/null | \
19 sed '/releases\/[0-9]/!d;s|.*releases/||;s|/.*||' | sort -Vr | sed q
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/share/games/openttd/data
32 cp $src/*.grf $fs/usr/share/games/openttd/data
33 cp $src/opengfx.obg $fs/usr/share/games/openttd/data
34 }