wok-next view p4wn/receipt @ rev 7715

Up: bluez to 4.82.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Dec 19 11:28:34 2010 +0000 (2010-12-19)
parents 717afcb65646
children 4e1164937651
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/p4wn $fs/usr/share/applications
27 cp $src/* $fs/var/www/p4wn
28 rm -f $fs/var/www/p4wn/README $fs/var/www/p4wn/*background.png
29 chown -R 80.80 $fs/var/www/p4wn
30 cat > $fs/usr/share/applications/p4wn.desktop <<EOT
31 [Desktop Entry]
32 Type=Application
33 Name=p4wn (Chess)
34 Exec=GtkLauncher file:///var/www/p4wn/index.html
35 Icon=/var/www/p4wn/2.gif
36 Terminal=false
37 Categories=Game;
38 Comment=Chess game
39 EOT
40 }