wok-next view sudoku/receipt @ rev 9132
Fixed sudoku to download source to SOURCES_REPOSITORY.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Mar 05 22:49:41 2011 +0000 (2011-03-05) |
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 }