wok-next view checkers/receipt @ rev 20785

gpgme: add gnupg, since build can not find gpgconf and gpg
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Jun 09 07:02:52 2018 +0000 (2018-06-09)
parents d43bf7aae921
children 0cbe4b1f2230
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"
11 compile_rules() {
12 mkdir -p $src
13 cd $src
15 TARBALL="$PACKAGE-$VERSION.tar.gz"
16 if [ -f $SRC/$TARBALL ]; then
17 tar -xf $SRC/$TARBALL
18 else
19 for i in Dames.htm black.gif gray.gif me1k.gif me2k.gif you1k.gif \
20 you2k.gif me1.gif me2.gif you1.gif you2.gif; do
21 wget -O $src/$i $(dirname $WEB_SITE)/$i
22 done
23 tar -czf $SRC/$TARBALL *
24 fi
26 grep -qs Dames_htm_smartbutton1 Dames.htm || return 0
27 sed \
28 -e 's|TITLE>.*</TITLE|TITLE>Checkers</TITLE|' \
29 -e 's|background="nth_brown_bg.gif" ||' \
30 -e 's|cellpadding=0|& align=center|' \
31 -e '/Vous devez commencer/d' \
32 -e '/version = 1.0;/,/Checkers Game/d' \
33 -e '/wrap=virtual/d' \
34 -e '/marrer le jeu/d' \
35 -e '/Dames_htm_smartbutton1/d' \
36 -e 's|table><br>"|&);|' \
37 -i Dames.htm
39 mkdir -p $install/var/www/checkers/
40 cp $src/* $install/var/www/checkers/
41 mv $install/var/www/checkers/Dames.htm $install/var/www/checkers/index.html
42 }
44 genpkg_rules() {
45 copy @std
46 chown -R 80.80 $fs/var/www/checkers
47 }