wok-next view jstetris/receipt @ rev 8919
Up: tazwok 4.2.2
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Tue Mar 01 00:18:27 2011 +0100 (2011-03-01) |
parents | 97e0197be6dd |
children | 2b260f668fef |
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 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://javascript.internet.com/games/Tetris.html"
10 # Rules to configure and make the package.
11 compile_rules()
12 {
13 mkdir $src
14 cd $src
15 wget -O index.html $WEB_SITE
16 wget $(dirname $WEB_SITE)/JsTetris.js
17 }
19 # Rules to gen a SliTaz package suitable for Tazpkg.
20 genpkg_rules()
21 {
22 mkdir -p $fs/var/www/tetris $fs/usr/share/applications
23 cp $src/* $fs/var/www/tetris
24 chown -R 80.80 $fs/var/www/tetris
25 cat > $fs/usr/share/applications/tetris.desktop <<EOT
26 [Desktop Entry]
27 Type=Application
28 Name=Tetris
29 Exec=GtkLauncher file:///var/www/tetris/index.html
30 Icon=other.png
31 Terminal=false
32 Categories=Game;
33 Comment=Tetris game
34 EOT
35 }