wok-current view nanochess/receipt @ rev 21212

updated scim-dev (1.4.9 -> 1.4.18)
author Hans-G?nter Theisgen
date Tue Apr 09 16:51:21 2019 +0100 (2019-04-09)
parents ebb57f2c0d8a
children 73f36875e5a7
line source
1 # SliTaz package receipt.
3 PACKAGE="nanochess"
4 VERSION="1.0"
5 CATEGORY="games"
6 SHORT_DESC="Chess game in javascript (need an unicode aware browser)"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="http://www.nanochess.org/"
10 HOST_ARCH="any"
11 TAGS="chess"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 # define colors
17 white="#f0f0b0" # was #f0f0f0
18 black="#f05030" # was #c0c0f0
19 gray="#843" # was #dde
20 background="$white" # was white
21 red="blue"
23 mkdir -p $src 2> /dev/null
24 cp $stuff/index.html $src
25 cd $src
26 sed -i -e 's/<select/<input type=\\"button\\" value=\\"\&#9818; \&hArr; \&#9812;\\" onclick=\\"yy^=8;Z()\\">&/' \
27 -e 's/><option.*$/>";/' -e "s/ style='font-size:20px'//" \
28 -e 's/50px/"+P+"px/g' -e 's/=60/="+H+"/g' \
29 -e 's|for(a=|H=innerHeight/9;P=H*5/6;|' -e 's/^"<table/for(a=&/' \
30 -e "s/c0c\":\"f0f\")+\"0f0/$white\":\"$black\")+\"/" \
31 -e "s/#dde/$gray/" -e "s/red/$red/" -e 's/bgcolor=#/bgcolor=/' \
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);|' \
33 -e "s|<script>|<style>body {background: $background; overflow: hidden;} input,select {background: transparent; -webkit-appearance: none;}</style>\n<title>Toledo chess</title>&|" \
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&|' \
35 -e 's|if(y)set.*|Z();}}Z()|' \
36 index.html
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/var/www/chess $fs/usr/share/applications
43 cp $src/* $fs/var/www/chess
44 chown -R 80.80 $fs/var/www/chess
45 }