wok-current view jstetris/receipt @ rev 10766

jstetris: Fixed jstetris to work with source dvd when offline. Added index.html to stuff so only JsTetris.js file is needed. Also there is no need for compile_rules with this one anymore.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue May 31 08:08:28 2011 +0000 (2011-05-31)
parents c225c4ba8698
children ff54c8e52d6b
line source
1 # SliTaz package receipt.
3 PACKAGE="jstetris"
4 VERSION="1.1.0"
5 CATEGORY="games"
6 SHORT_DESC="Tetris game in javascript"
7 TARBALL="JsTetris.js"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 WEB_SITE="http://javascript.internet.com/games/Tetris.html"
10 WGET_URL="http://javascript.internet.com/games/$TARBALL"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 mkdir -p $fs/var/www/tetris $fs/usr/share/applications
16 cp $src/* $fs/var/www/tetris
17 cp $stuff/index.html $fs/var/www/tetris
18 chown -R 80.80 $fs/var/www/tetris
19 cat > $fs/usr/share/applications/tetris.desktop <<EOT
20 [Desktop Entry]
21 Type=Application
22 Name=Tetris
23 Exec=browser file:///var/www/tetris/index.html
24 Icon=other.png
25 Terminal=false
26 Categories=Game;
27 Comment=Tetris game
28 EOT
29 }