wok-stable rev 9271

Fixed sudoku to use TARBALL instead of downloading in compile_rules to source repos.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Mar 15 18:06:40 2011 +0000 (2011-03-15)
parents cdc7aba9de48
children 61e9a91fcb83
files sudoku/receipt
line diff
     1.1 --- a/sudoku/receipt	Tue Mar 15 17:35:56 2011 +0000
     1.2 +++ b/sudoku/receipt	Tue Mar 15 18:06:40 2011 +0000
     1.3 @@ -5,23 +5,15 @@
     1.4  CATEGORY="games"
     1.5  SHORT_DESC="Sudoku game in javascript"
     1.6  MAINTAINER="pascal.bellard@slitaz.org"
     1.7 +TARBALL="$PACKAGE-$VERSION.html"
     1.8  WEB_SITE="http://10k.aneventapart.com/Entry/81"
     1.9 -
    1.10 -# Rules to configure and make the package.
    1.11 -compile_rules()
    1.12 -{
    1.13 -	mkdir $src
    1.14 -	cd $src
    1.15 -	[ -s $SOURCES_REPOSITORY/$PACKAGE-$VERSION.html ] || \
    1.16 -	wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.html http://10k.aneventapart.com/Uploads/81/index.html
    1.17 -	cp -a $SOURCES_REPOSITORY/$PACKAGE-$VERSION.html $src/index.html
    1.18 -}
    1.19 +WGET_URL="http://10k.aneventapart.com/Uploads/81/index.html"
    1.20  
    1.21  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.22  genpkg_rules()
    1.23  {
    1.24          mkdir -p $fs/var/www/$PACKAGE $fs/usr/share/applications
    1.25 -	cp $src/* $fs/var/www/$PACKAGE
    1.26 +	cp $src/$TARBALL $fs/var/www/$PACKAGE/index.html
    1.27  	chown -R 80.80 $fs/var/www/$PACKAGE
    1.28  	cat > $fs/usr/share/applications/sudoku.desktop <<EOT
    1.29  [Desktop Entry]