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