wok view jstetris/receipt @ rev 10329
ftjam: Add $CONFIGURE_ARGS.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun May 22 00:59:41 2011 +0000 (2011-05-22) |
parents | 717afcb65646 |
children | 7206549f64b7 |
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=browser file:///var/www/tetris/index.html
30 Icon=other.png
31 Terminal=false
32 Categories=Game;
33 Comment=Tetris game
34 EOT
35 }