wok-stable view p4wn/receipt @ rev 8439
Fixed p4wn to work with new tazwok-experimental.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Feb 06 03:37:09 2011 +0000 (2011-02-06) |
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 }