wok annotate nanochess/receipt @ rev 25249

updated python-websocket-client (0.57.0 -> 0.59.0)
author Hans-G?nter Theisgen
date Thu Jul 14 07:30:53 2022 +0100 (2022-07-14)
parents ebb57f2c0d8a
children 73f36875e5a7
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@14781 8 LICENSE="GPL"
pascal@14781 9 WEB_SITE="http://www.nanochess.org/"
pascal@16264 10 HOST_ARCH="any"
pascal@13041 11 TAGS="chess"
pascal@7045 12
pascal@7045 13 # Rules to configure and make the package.
pascal@7045 14 compile_rules()
pascal@7045 15 {
pascal@12091 16 # define colors
pascal@12092 17 white="#f0f0b0" # was #f0f0f0
pascal@12092 18 black="#f05030" # was #c0c0f0
pascal@12091 19 gray="#843" # was #dde
pascal@12102 20 background="$white" # was white
pascal@12091 21 red="blue"
pascal@12091 22
pascal@10761 23 mkdir -p $src 2> /dev/null
slaxemulator@11041 24 cp $stuff/index.html $src
pascal@7045 25 cd $src
pascal@12094 26 sed -i -e 's/<select/<input type=\\"button\\" value=\\"\&#9818; \&hArr; \&#9812;\\" onclick=\\"yy^=8;Z()\\">&/' \
pascal@12100 27 -e 's/><option.*$/>";/' -e "s/ style='font-size:20px'//" \
pascal@7611 28 -e 's/50px/"+P+"px/g' -e 's/=60/="+H+"/g' \
pascal@7075 29 -e 's|for(a=|H=innerHeight/9;P=H*5/6;|' -e 's/^"<table/for(a=&/' \
pascal@12091 30 -e "s/c0c\":\"f0f\")+\"0f0/$white\":\"$black\")+\"/" \
pascal@12092 31 -e "s/#dde/$gray/" -e "s/red/$red/" -e 's/bgcolor=#/bgcolor=/' \
pascal@12100 32 -e 's|^doc.*|yy=/\\?b/i.test(document.URL)?8:0;for(p=18;++p<23;)a+="<option>\&#9823; \&rarr; \&#98"+p+";</option>";document.write(a);|' \
pascal@12102 33 -e "s|<script>|<style>body {background: $background; overflow: hidden;} input,select {background: transparent; -webkit-appearance: none;}</style>\n<title>Toledo chess</title>&|" \
pascal@12100 34 -e 's|function Y|function Z(){if(y!=yy)setTimeout("X(0,0,0,21,u,2),X(0,0,0,21,u,1)",250);}\n&|' \
pascal@11614 35 -e 's|if(y)set.*|Z();}}Z()|' \
pascal@7045 36 index.html
pascal@7045 37 }
pascal@7045 38
pascal@7045 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@7045 40 genpkg_rules()
pascal@7045 41 {
pascal@7045 42 mkdir -p $fs/var/www/chess $fs/usr/share/applications
pascal@7045 43 cp $src/* $fs/var/www/chess
pascal@7045 44 chown -R 80.80 $fs/var/www/chess
pascal@7045 45 }
pascal@7045 46