wok-next annotate checkers/receipt @ rev 20766
childsplay: up (3.3); tiny edits.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 06 04:36:32 2018 +0300 (2018-06-06) |
parents | d43bf7aae921 |
children | 0cbe4b1f2230 |
rev | line source |
---|---|
al@20766 | 1 # SliTaz package receipt v2. |
pascal@7046 | 2 |
pascal@7046 | 3 PACKAGE="checkers" |
pascal@7046 | 4 VERSION="1.0" |
pascal@7046 | 5 CATEGORY="games" |
pascal@7046 | 6 SHORT_DESC="Checkers game in javascript" |
pascal@7046 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@16660 | 8 LICENSE="unknown" |
pascal@7046 | 9 WEB_SITE="http://thierry.franquin.free.fr/jeudame/Dames.htm" |
pascal@7046 | 10 |
al@20766 | 11 compile_rules() { |
al@20766 | 12 mkdir -p $src |
al@20766 | 13 cd $src |
al@20766 | 14 |
al@20766 | 15 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@20513 | 16 if [ -f $SRC/$TARBALL ]; then |
al@20766 | 17 tar -xf $SRC/$TARBALL |
slaxemulator@9144 | 18 else |
al@20766 | 19 for i in Dames.htm black.gif gray.gif me1k.gif me2k.gif you1k.gif \ |
al@20766 | 20 you2k.gif me1.gif me2.gif you1.gif you2.gif; do |
al@20766 | 21 wget -O $src/$i $(dirname $WEB_SITE)/$i |
slaxemulator@9144 | 22 done |
al@20766 | 23 tar -czf $SRC/$TARBALL * |
slaxemulator@9144 | 24 fi |
al@20766 | 25 |
pascal@7046 | 26 grep -qs Dames_htm_smartbutton1 Dames.htm || return 0 |
al@20766 | 27 sed \ |
al@20766 | 28 -e 's|TITLE>.*</TITLE|TITLE>Checkers</TITLE|' \ |
pascal@7046 | 29 -e 's|background="nth_brown_bg.gif" ||' \ |
pascal@7046 | 30 -e 's|cellpadding=0|& align=center|' \ |
pascal@7046 | 31 -e '/Vous devez commencer/d' \ |
pascal@7046 | 32 -e '/version = 1.0;/,/Checkers Game/d' \ |
pascal@7046 | 33 -e '/wrap=virtual/d' \ |
pascal@7046 | 34 -e '/marrer le jeu/d' \ |
pascal@7046 | 35 -e '/Dames_htm_smartbutton1/d' \ |
pascal@7046 | 36 -e 's|table><br>"|&);|' \ |
al@20766 | 37 -i Dames.htm |
al@20766 | 38 |
al@20766 | 39 mkdir -p $install/var/www/checkers/ |
al@20766 | 40 cp $src/* $install/var/www/checkers/ |
al@20766 | 41 mv $install/var/www/checkers/Dames.htm $install/var/www/checkers/index.html |
pascal@7046 | 42 } |
pascal@7046 | 43 |
al@20766 | 44 genpkg_rules() { |
al@20766 | 45 copy @std |
pascal@7046 | 46 chown -R 80.80 $fs/var/www/checkers |
pascal@7046 | 47 } |