wok-current annotate nanochess/receipt @ rev 7048
nanochess: resize board
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 01 11:19:57 2010 +0100 (2010-11-01) |
parents | 181f67b20107 |
children | 708caf752da6 |
rev | line source |
---|---|
pascal@7045 | 1 # SliTaz package receipt. |
pascal@7045 | 2 |
pascal@7045 | 3 PACKAGE="nanochess" |
pascal@7045 | 4 VERSION="1.0" |
pascal@7045 | 5 CATEGORY="games" |
pascal@7045 | 6 SHORT_DESC="Chess game in javascript (need an unicode aware browser)" |
pascal@7045 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@7045 | 8 WEB_SITE="http://nanochess.110mb.com/chess4.html" |
pascal@7045 | 9 |
pascal@7045 | 10 # Rules to configure and make the package. |
pascal@7045 | 11 compile_rules() |
pascal@7045 | 12 { |
pascal@7045 | 13 mkdir $src |
pascal@7045 | 14 cd $src |
pascal@7045 | 15 wget -O index.html \ |
pascal@7045 | 16 $(dirname $WEB_SITE)/archive/toledo_javascript_chess_3.html |
pascal@7045 | 17 sed -i -e 's/<select/\♟ \→ &/' \ |
pascal@7048 | 18 -e 's/50px/40px/g' -e 's/=60/=48/g' \ |
pascal@7045 | 19 -e 's/f0f":"c0c")+"0f0/f0f":"606")+"0c0/' -e 's/e0e0f0/b0b080/' \ |
pascal@7045 | 20 -e 's/><option.*$/>";/' -e 's|^doc.*|for(p=18;++p<23;)a+="<option>\b"+p+";</option>";document.write(a);|' \ |
pascal@7045 | 21 index.html |
pascal@7045 | 22 } |
pascal@7045 | 23 |
pascal@7045 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@7045 | 25 genpkg_rules() |
pascal@7045 | 26 { |
pascal@7045 | 27 mkdir -p $fs/var/www/chess $fs/usr/share/applications |
pascal@7045 | 28 cp $src/* $fs/var/www/chess |
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=other.png |
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 |