wok-stable annotate jstetris/receipt @ rev 8290
Up: tazwok-experimental to 0.0.5.1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Jan 30 21:11:11 2011 +0000 (2011-01-30) |
parents | 97e0197be6dd |
children | 2b260f668fef |
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 |
pascal@7125 | 29 Exec=GtkLauncher 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 |