wok diff jstetris/receipt @ rev 10929

Up: tazpkg to 4.7.1.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Aug 18 22:21:30 2011 +0000 (2011-08-18)
parents c225c4ba8698
children ff54c8e52d6b
line diff
     1.1 --- a/jstetris/receipt	Tue May 31 12:15:24 2011 +0200
     1.2 +++ b/jstetris/receipt	Thu Aug 18 22:21:30 2011 +0000
     1.3 @@ -4,27 +4,17 @@
     1.4  VERSION="1.1.0"
     1.5  CATEGORY="games"
     1.6  SHORT_DESC="Tetris game in javascript"
     1.7 +TARBALL="JsTetris.js"
     1.8  MAINTAINER="pascal.bellard@slitaz.org"
     1.9  WEB_SITE="http://javascript.internet.com/games/Tetris.html"
    1.10 -
    1.11 -# Rules to configure and make the package.
    1.12 -compile_rules()
    1.13 -{
    1.14 -	mkdir -p $src
    1.15 -	cd $src
    1.16 -	_TARBALL=$PACKAGE-$VERSION.tar.gz
    1.17 -	if [ ! -s ${SOURCE_REPOSITORY:-$SRC}/$_TARBALL ]; then
    1.18 -		wget -O index.html $WEB_SITE
    1.19 -		wget $(dirname $WEB_SITE)/JsTetris.js
    1.20 -		tar cvzf ${SOURCE_REPOSITORY:-$SRC}/$_TARBALL index.html JsTetris.js
    1.21 -	fi
    1.22 -}
    1.23 +WGET_URL="http://javascript.internet.com/games/$TARBALL"
    1.24  
    1.25  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.26  genpkg_rules()
    1.27  {
    1.28          mkdir -p $fs/var/www/tetris $fs/usr/share/applications
    1.29  	cp $src/* $fs/var/www/tetris
    1.30 +	cp $stuff/index.html $fs/var/www/tetris
    1.31  	chown -R 80.80 $fs/var/www/tetris
    1.32  	cat > $fs/usr/share/applications/tetris.desktop <<EOT
    1.33  [Desktop Entry]