wok-current annotate jstetris/receipt @ rev 9806
flac: fix stuff path
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 14 22:46:14 2011 +0200 (2011-05-14) |
parents | 717afcb65646 |
children | 7206549f64b7 |
rev | line source |
---|---|
pascal@7056 | 1 # SliTaz package receipt. |
pascal@7056 | 2 |
pascal@7056 | 3 PACKAGE="jstetris" |
pascal@7056 | 4 VERSION="1.1.0" |
pascal@7056 | 5 CATEGORY="games" |
pascal@7056 | 6 SHORT_DESC="Tetris game in javascript" |
pascal@7056 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@7056 | 8 WEB_SITE="http://javascript.internet.com/games/Tetris.html" |
pascal@7056 | 9 |
pascal@7056 | 10 # Rules to configure and make the package. |
pascal@7056 | 11 compile_rules() |
pascal@7056 | 12 { |
pascal@7056 | 13 mkdir $src |
pascal@7056 | 14 cd $src |
pascal@7056 | 15 wget -O index.html $WEB_SITE |
pascal@7056 | 16 wget $(dirname $WEB_SITE)/JsTetris.js |
pascal@7056 | 17 } |
pascal@7056 | 18 |
pascal@7056 | 19 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@7056 | 20 genpkg_rules() |
pascal@7056 | 21 { |
pascal@7056 | 22 mkdir -p $fs/var/www/tetris $fs/usr/share/applications |
pascal@7056 | 23 cp $src/* $fs/var/www/tetris |
pascal@7056 | 24 chown -R 80.80 $fs/var/www/tetris |
pascal@7056 | 25 cat > $fs/usr/share/applications/tetris.desktop <<EOT |
pascal@7056 | 26 [Desktop Entry] |
pascal@7056 | 27 Type=Application |
pascal@7056 | 28 Name=Tetris |
slaxemulator@9600 | 29 Exec=browser file:///var/www/tetris/index.html |
pascal@7056 | 30 Icon=other.png |
pascal@7056 | 31 Terminal=false |
pascal@7056 | 32 Categories=Game; |
pascal@7056 | 33 Comment=Tetris game |
pascal@7056 | 34 EOT |
pascal@7056 | 35 } |
pascal@7056 | 36 |