wok view p4wn/receipt @ rev 11854
locale*: update WANTED
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 27 11:20:24 2012 +0100 (2012-02-27) |
parents | 4e1164937651 |
children | ff54c8e52d6b |
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=browser 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 }