wok-stable rev 7056
Add jstetris
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 01 17:37:12 2010 +0100 (2010-11-01) |
parents | 5a5147505edf |
children | 7570ed4b268f |
files | jstetris/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/jstetris/receipt Mon Nov 01 17:37:12 2010 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="jstetris" 1.7 +VERSION="1.1.0" 1.8 +CATEGORY="games" 1.9 +SHORT_DESC="Tetris game in javascript" 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +WEB_SITE="http://javascript.internet.com/games/Tetris.html" 1.12 + 1.13 +# Rules to configure and make the package. 1.14 +compile_rules() 1.15 +{ 1.16 + mkdir $src 1.17 + cd $src 1.18 + wget -O index.html $WEB_SITE 1.19 + wget $(dirname $WEB_SITE)/JsTetris.js 1.20 +} 1.21 + 1.22 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.23 +genpkg_rules() 1.24 +{ 1.25 + mkdir -p $fs/var/www/tetris $fs/usr/share/applications 1.26 + cp $src/* $fs/var/www/tetris 1.27 + chown -R 80.80 $fs/var/www/tetris 1.28 + cat > $fs/usr/share/applications/tetris.desktop <<EOT 1.29 +[Desktop Entry] 1.30 +Type=Application 1.31 +Name=Tetris 1.32 +Exec=browser file:///var/www/tetris/index.html 1.33 +Icon=other.png 1.34 +Terminal=false 1.35 +Categories=Game; 1.36 +Comment=Tetris game 1.37 +EOT 1.38 +} 1.39 +