wok-next annotate checkers/receipt @ rev 21382
updated nbd (3.3 -> 3.20)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 16 17:27:00 2020 +0100 (2020-04-16) |
parents | 86b5d202495a |
children |
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" |
al@21057 | 10 HOST_ARCH="any" |
pascal@7046 | 11 |
al@20766 | 12 compile_rules() { |
al@20766 | 13 mkdir -p $src |
al@20766 | 14 cd $src |
al@20766 | 15 |
al@20766 | 16 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@20513 | 17 if [ -f $SRC/$TARBALL ]; then |
al@20766 | 18 tar -xf $SRC/$TARBALL |
slaxemulator@9144 | 19 else |
al@20766 | 20 for i in Dames.htm black.gif gray.gif me1k.gif me2k.gif you1k.gif \ |
al@20766 | 21 you2k.gif me1.gif me2.gif you1.gif you2.gif; do |
al@20766 | 22 wget -O $src/$i $(dirname $WEB_SITE)/$i |
slaxemulator@9144 | 23 done |
al@20766 | 24 tar -czf $SRC/$TARBALL * |
slaxemulator@9144 | 25 fi |
al@20766 | 26 |
pascal@7046 | 27 grep -qs Dames_htm_smartbutton1 Dames.htm || return 0 |
al@20766 | 28 sed \ |
al@20766 | 29 -e 's|TITLE>.*</TITLE|TITLE>Checkers</TITLE|' \ |
pascal@7046 | 30 -e 's|background="nth_brown_bg.gif" ||' \ |
pascal@7046 | 31 -e 's|cellpadding=0|& align=center|' \ |
pascal@7046 | 32 -e '/Vous devez commencer/d' \ |
pascal@7046 | 33 -e '/version = 1.0;/,/Checkers Game/d' \ |
pascal@7046 | 34 -e '/wrap=virtual/d' \ |
pascal@7046 | 35 -e '/marrer le jeu/d' \ |
pascal@7046 | 36 -e '/Dames_htm_smartbutton1/d' \ |
pascal@7046 | 37 -e 's|table><br>"|&);|' \ |
al@20766 | 38 -i Dames.htm |
al@20766 | 39 |
al@20766 | 40 mkdir -p $install/var/www/checkers/ |
al@20766 | 41 cp $src/* $install/var/www/checkers/ |
al@20766 | 42 mv $install/var/www/checkers/Dames.htm $install/var/www/checkers/index.html |
pascal@7046 | 43 } |
pascal@7046 | 44 |
al@20766 | 45 genpkg_rules() { |
al@20766 | 46 copy @std |
pascal@7046 | 47 chown -R 80.80 $fs/var/www/checkers |
pascal@7046 | 48 } |