wok-next annotate sudoku/receipt @ rev 9098

emacs-pkg-lua-mode: fix genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 04 22:10:40 2011 +0100 (2011-03-04)
parents 717afcb65646
children 4abb57275e48
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
pascal@7055 15 wget http://10k.aneventapart.com/Uploads/81/index.html
pascal@7055 16 }
pascal@7055 17
pascal@7055 18 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@7055 19 genpkg_rules()
pascal@7055 20 {
pascal@7055 21 mkdir -p $fs/var/www/$PACKAGE $fs/usr/share/applications
pascal@7055 22 cp $src/* $fs/var/www/$PACKAGE
pascal@7055 23 chown -R 80.80 $fs/var/www/$PACKAGE
pascal@7055 24 cat > $fs/usr/share/applications/sudoku.desktop <<EOT
pascal@7055 25 [Desktop Entry]
pascal@7055 26 Type=Application
pascal@7055 27 Name=Sudoku
lufeng369@7530 28 Name[zh_CN]=数独
lufeng369@7530 29 Exec=browser file:///var/www/sudoku/index.html
pascal@7055 30 Icon=other.png
pascal@7055 31 Terminal=false
pascal@7055 32 Categories=Game;
pascal@7055 33 Comment=Sudoku game
pascal@7055 34 EOT
pascal@7055 35 }
pascal@7055 36