wok annotate p4wn/receipt @ rev 7045
Add nanochess & p4wn
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 01 10:52:35 2010 +0100 (2010-11-01) |
parents | |
children | 717afcb65646 |
rev | line source |
---|---|
pascal@7045 | 1 # SliTaz package receipt. |
pascal@7045 | 2 |
pascal@7045 | 3 PACKAGE="p4wn" |
pascal@7045 | 4 VERSION="1.0" |
pascal@7045 | 5 CATEGORY="games" |
pascal@7045 | 6 SHORT_DESC="Chess game in javascript" |
pascal@7045 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@7045 | 8 WEB_SITE="http://p4wn.sourceforge.net/" |
pascal@7045 | 9 TARBALL="sven_vehars_fancy_version.zip" |
pascal@7045 | 10 |
pascal@7045 | 11 # Rules to configure and make the package. |
pascal@7045 | 12 compile_rules() |
pascal@7045 | 13 { |
pascal@7045 | 14 mkdir $src |
pascal@7045 | 15 cd $src |
pascal@7045 | 16 [ -s $SOURCES_REPOSITORY/$TARBALL ] || |
pascal@7045 | 17 wget $WEB_SITE/downloads/$TARBALL -P $SOURCES_REPOSITORY |
pascal@7045 | 18 [ -s index.html ] || unzip $SOURCES_REPOSITORY/$TARBALL |
pascal@7045 | 19 sed -i '/background-image/d' *.css |
pascal@7045 | 20 sed -i 's|title>.*</title|title>Chess</title|' index.html |
pascal@7045 | 21 } |
pascal@7045 | 22 |
pascal@7045 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@7045 | 24 genpkg_rules() |
pascal@7045 | 25 { |
pascal@7045 | 26 mkdir -p $fs/var/www/chess $fs/usr/share/applications |
pascal@7045 | 27 cp $src/* $fs/var/www/chess |
pascal@7045 | 28 rm -f $fs/var/www/chess/README $fs/var/www/chess/*background.png |
pascal@7045 | 29 chown -R 80.80 $fs/var/www/chess |
pascal@7045 | 30 cat > $fs/usr/share/applications/chess.desktop <<EOT |
pascal@7045 | 31 [Desktop Entry] |
pascal@7045 | 32 Type=Application |
pascal@7045 | 33 Name=Chess |
pascal@7045 | 34 Exec=browser file:///var/www/chess/index.html |
pascal@7045 | 35 Icon=/var/www/chess/2.gif |
pascal@7045 | 36 Terminal=false |
pascal@7045 | 37 Categories=Game; |
pascal@7045 | 38 Comment=Chess game |
pascal@7045 | 39 EOT |
pascal@7045 | 40 } |
pascal@7045 | 41 |