wok-next annotate chess3d/receipt @ rev 21402
updated php (7.4.4 -> 7.4.5)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 21 07:47:41 2020 +0100 (2020-04-21) |
parents | d5aab818505e |
children |
rev | line source |
---|---|
al@20766 | 1 # SliTaz package receipt v2. |
pascal@7054 | 2 |
pascal@7054 | 3 PACKAGE="chess3d" |
pascal@7054 | 4 VERSION="1.0" |
pascal@7054 | 5 CATEGORY="games" |
pascal@7054 | 6 SHORT_DESC="3D Chess game in javascript" |
pascal@7054 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15606 | 8 LICENSE="GPL" |
pascal@7054 | 9 WEB_SITE="http://chessforeva.appspot.com/" |
al@21057 | 10 HOST_ARCH="any" |
pascal@7054 | 11 |
al@20766 | 12 compile_rules() { |
al@20766 | 13 mkdir -p $src |
pascal@7054 | 14 cd $src |
al@20766 | 15 |
al@20766 | 16 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@20766 | 17 if [ -f $SRC/$TARBALL ]; then |
al@20766 | 18 tar -xf $SRC/$TARBALL |
al@20766 | 19 else |
al@20766 | 20 mkdir -p arts d_img img |
al@20766 | 21 |
al@20766 | 22 for i in C0_Toledo.htm c0_pgn.js c0_chess.js; do |
al@20766 | 23 wget $WEB_SITE$i || return 1 |
al@20766 | 24 dos2unix $i |
pascal@7054 | 25 done |
al@20766 | 26 |
al@20766 | 27 wget -P arts ${WEB_SITE}arts/a_arrow.gif || return 1 |
al@20766 | 28 |
al@20766 | 29 for i in b_plus1 b_minus1 b_topview oie_arrow_white; do |
al@20766 | 30 wget -P img ${WEB_SITE}img/$i.gif || return 1 |
al@20766 | 31 done |
al@20766 | 32 |
al@20766 | 33 for i in t oie; do |
al@20766 | 34 for j in board letters letters2; do |
al@20766 | 35 wget -P img ${WEB_SITE}img/${i}_$j.gif || return 1 |
al@20766 | 36 done |
al@20766 | 37 for j in w b; do |
al@20766 | 38 for k in pawn rook knight1 knight2 bishop qeen king; do |
al@21020 | 39 wget -P img ${WEB_SITE}img/${i}_$j$k.gif || return 1 |
al@20766 | 40 done |
pascal@7054 | 41 done |
pascal@7054 | 42 done |
al@20766 | 43 tar -czf $SRC/$TARBALL * |
al@20766 | 44 fi |
al@20766 | 45 |
al@20766 | 46 sed \ |
al@20766 | 47 -e 's/var THide=.*/var THide=1;/' \ |
pascal@7054 | 48 -e 's/var Tnoback=.*/var Tnoback=1;/' \ |
pascal@7570 | 49 -e 's/c0_topview=true;/&\nc0_ch_topview();/' \ |
pascal@7054 | 50 -e 's|http://chess.*com/||' \ |
pascal@7571 | 51 -e 's|http://www.ltn.lv/~gv/to.*gif|img/b_minus1.gif|' \ |
al@20766 | 52 -e "s|$WEB_SITE||" \ |
al@20766 | 53 -i C0_Toledo.htm |
al@20766 | 54 sed -i -e "s|$WEB_SITE||" *.js |
al@20766 | 55 |
al@20766 | 56 mkdir -p $install/var/www/chess3d/ |
al@20766 | 57 cp -r $src/* $install/var/www/chess3d/ |
al@20766 | 58 mv $install/var/www/chess3d/C0_Toledo.htm $install/var/www/chess3d/index.html |
pascal@7054 | 59 } |
pascal@7054 | 60 |
al@20766 | 61 genpkg_rules() { |
al@20766 | 62 copy @std |
pascal@7054 | 63 chown -R 80.80 $fs/var/www/chess3d |
al@20766 | 64 TAGS="chess" |
pascal@7054 | 65 } |