wok-current annotate sudoku/receipt @ rev 9137

Up: transmission to 2.22.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Mar 06 00:11:04 2011 +0000 (2011-03-06)
parents f07dab2dcaee
children 95c870915bbb
rev   line source
pascal@7055 1 # SliTaz package receipt.
pascal@7055 2
pascal@7055 3 PACKAGE="sudoku"
pascal@7055 4 VERSION="2.2"
pascal@7055 5 CATEGORY="games"
pascal@7055 6 SHORT_DESC="Sudoku game in javascript"
pascal@7055 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@7055 8 WEB_SITE="http://10k.aneventapart.com/Entry/81"
pascal@7055 9
pascal@7055 10 # Rules to configure and make the package.
pascal@7055 11 compile_rules()
pascal@7055 12 {
pascal@7055 13 mkdir $src
pascal@7055 14 cd $src
slaxemulator@9132 15 [ -s $SOURCES_REPOSITORY/$PACKAGE-$VERSION.html ] || \
slaxemulator@9132 16 wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.html http://10k.aneventapart.com/Uploads/81/index.html
slaxemulator@9132 17 cp -a $SOURCES_REPOSITORY/$PACKAGE-$VERSION.html $src/index.html
pascal@7055 18 }
pascal@7055 19
pascal@7055 20 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@7055 21 genpkg_rules()
pascal@7055 22 {
pascal@7055 23 mkdir -p $fs/var/www/$PACKAGE $fs/usr/share/applications
pascal@7055 24 cp $src/* $fs/var/www/$PACKAGE
pascal@7055 25 chown -R 80.80 $fs/var/www/$PACKAGE
pascal@7055 26 cat > $fs/usr/share/applications/sudoku.desktop <<EOT
pascal@7055 27 [Desktop Entry]
pascal@7055 28 Type=Application
pascal@7055 29 Name=Sudoku
lufeng369@7530 30 Name[zh_CN]=数独
lufeng369@7530 31 Exec=browser file:///var/www/sudoku/index.html
pascal@7055 32 Icon=other.png
pascal@7055 33 Terminal=false
pascal@7055 34 Categories=Game;
pascal@7055 35 Comment=Sudoku game
pascal@7055 36 EOT
pascal@7055 37 }
pascal@7055 38