wok-next view checkers/receipt @ rev 21391
updated opencpn (1.3.2 -> 5.0.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 17 16:52:11 2020 +0100 (2020-04-17) |
parents | 86b5d202495a |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="checkers"
4 VERSION="1.0"
5 CATEGORY="games"
6 SHORT_DESC="Checkers game in javascript"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="unknown"
9 WEB_SITE="http://thierry.franquin.free.fr/jeudame/Dames.htm"
10 HOST_ARCH="any"
12 compile_rules() {
13 mkdir -p $src
14 cd $src
16 TARBALL="$PACKAGE-$VERSION.tar.gz"
17 if [ -f $SRC/$TARBALL ]; then
18 tar -xf $SRC/$TARBALL
19 else
20 for i in Dames.htm black.gif gray.gif me1k.gif me2k.gif you1k.gif \
21 you2k.gif me1.gif me2.gif you1.gif you2.gif; do
22 wget -O $src/$i $(dirname $WEB_SITE)/$i
23 done
24 tar -czf $SRC/$TARBALL *
25 fi
27 grep -qs Dames_htm_smartbutton1 Dames.htm || return 0
28 sed \
29 -e 's|TITLE>.*</TITLE|TITLE>Checkers</TITLE|' \
30 -e 's|background="nth_brown_bg.gif" ||' \
31 -e 's|cellpadding=0|& align=center|' \
32 -e '/Vous devez commencer/d' \
33 -e '/version = 1.0;/,/Checkers Game/d' \
34 -e '/wrap=virtual/d' \
35 -e '/marrer le jeu/d' \
36 -e '/Dames_htm_smartbutton1/d' \
37 -e 's|table><br>"|&);|' \
38 -i Dames.htm
40 mkdir -p $install/var/www/checkers/
41 cp $src/* $install/var/www/checkers/
42 mv $install/var/www/checkers/Dames.htm $install/var/www/checkers/index.html
43 }
45 genpkg_rules() {
46 copy @std
47 chown -R 80.80 $fs/var/www/checkers
48 }