wok-current view p4wn/receipt @ rev 7125
javascript games: use GtkLauncher
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 05 01:38:58 2010 +0100 (2010-11-05) |
parents | 181f67b20107 |
children | da9081c3c915 |
line source
1 # SliTaz package receipt.
3 PACKAGE="p4wn"
4 VERSION="1.0"
5 CATEGORY="games"
6 SHORT_DESC="Chess game in javascript"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://p4wn.sourceforge.net/"
9 TARBALL="sven_vehars_fancy_version.zip"
11 # Rules to configure and make the package.
12 compile_rules()
13 {
14 mkdir $src
15 cd $src
16 [ -s $SOURCES_REPOSITORY/$TARBALL ] ||
17 wget $WEB_SITE/downloads/$TARBALL -P $SOURCES_REPOSITORY
18 [ -s index.html ] || unzip $SOURCES_REPOSITORY/$TARBALL
19 sed -i '/background-image/d' *.css
20 sed -i 's|title>.*</title|title>Chess</title|' index.html
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/var/www/chess $fs/usr/share/applications
27 cp $src/* $fs/var/www/chess
28 rm -f $fs/var/www/chess/README $fs/var/www/chess/*background.png
29 chown -R 80.80 $fs/var/www/chess
30 cat > $fs/usr/share/applications/chess.desktop <<EOT
31 [Desktop Entry]
32 Type=Application
33 Name=Chess
34 Exec=GtkLauncher file:///var/www/chess/index.html
35 Icon=/var/www/chess/2.gif
36 Terminal=false
37 Categories=Game;
38 Comment=Chess game
39 EOT
40 }