wok-6.x view p4wn/receipt @ rev 8981
Automated merge with http://hg.slitaz.org/wok
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Wed Mar 02 20:58:26 2011 +0100 (2011-03-02) |
parents | da9081c3c915 |
children | 2b260f668fef |
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"
10 WGET_URL="$WEB_SITE/downloads/$TARBALL"
11 # Rules to configure and make the package.
12 compile_rules()
13 {
14 cd $src
15 sed -i '/background-image/d' *.css
16 sed -i 's|title>.*</title|title>Chess</title|' index.html
17 }
19 # Rules to gen a SliTaz package suitable for Tazpkg.
20 genpkg_rules()
21 {
22 mkdir -p $fs/var/www/p4wn $fs/usr/share/applications
23 cp $src/* $fs/var/www/p4wn
24 rm -f $fs/var/www/p4wn/README $fs/var/www/p4wn/*background.png
25 chown -R 80.80 $fs/var/www/p4wn
26 cat > $fs/usr/share/applications/p4wn.desktop <<EOT
27 [Desktop Entry]
28 Type=Application
29 Name=p4wn (Chess)
30 Exec=GtkLauncher file:///var/www/p4wn/index.html
31 Icon=/var/www/p4wn/2.gif
32 Terminal=false
33 Categories=Game;
34 Comment=Chess game
35 EOT
36 }