wok view p4wn/receipt @ rev 12897

get-skype: add pre_remove cleanup (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 28 11:46:48 2012 +0200 (2012-05-28)
parents 2b260f668fef
children 2a5cc8208d36
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 $fs/usr/share/pixmaps
24 cp $src/* $fs/var/www/p4wn
25 rm -f $fs/var/www/p4wn/README $fs/var/www/p4wn/*background.png
26 chown -R 80.80 $fs/var/www/p4wn
27 cat > $fs/usr/share/applications/p4wn.desktop <<EOT
28 [Desktop Entry]
29 Type=Application
30 Name=p4wn (Chess)
31 Exec=browser file:///var/www/p4wn/index.html
32 Icon=p4wn
33 Terminal=false
34 Categories=Game;
35 Comment=Chess game
36 EOT
37 }