wok view p4wn/receipt @ rev 7115

Up: web-applications to 1.3. Removed freehg and replaced it with bitbucket. Freehg is dead btw before slitaz 3.0 it looks like.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Nov 04 03:25:11 2010 +0000 (2010-11-04)
parents
children 717afcb65646
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=browser 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 }