wok view xtron/receipt @ rev 24503
updated dulwich (0.19.14 -> 0.19.16)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 20 10:36:29 2022 +0100 (2022-02-20) |
parents | 8b7008c000eb |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="xtron"
4 VERSION="1.1a"
5 CATEGORY="games"
6 SHORT_DESC="Simple X game based on light-cycle race from the movie TRON."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="http://ibiblio.org/pub/Linux/games/arcade/xtron-$VERSION.lsm"
11 WGET_URL="${WEB_SITE%/*}/$TARBALL"
13 DEPENDS="xorg-libXpm xorg-libXau libxcb"
14 BUILD_DEPENDS="xorg-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-/!d;/tgz/!d;s|.*$PACKAGE-\\(.*\\).tgz.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's|/usr/X386|/usr|' Makefile
27 sed -i 's|./pixmaps/|/usr/share/games/xtron/|' xtronrc
28 sed -i 's|usr/X11/lib|etc|' resource.c xtronrc
29 make
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/games $fs/usr/share/games $fs/etc/X11/app-defaults
36 mkdir -p $fs/usr/share/applications
37 cp -a $src/xtron $fs/usr/games
38 cp -a $src/pixmaps $fs/usr/share/games/xtron
39 cp -a $src/xtronrc $fs/etc/X11/app-defaults/
40 cat > $fs/usr/share/applications/xtron.desktop <<EOT
41 [Desktop Entry]
42 Type=Application
43 Encoding=UTF-8
44 Name=xtron
45 Exec=xtron
46 Icon=/usr/share/games/xtron/Xtron_icon.xpm
47 Terminal=false
48 Categories=Application;Game;
49 EOT
50 }