wok view othello/receipt @ rev 20639

up rclone to v1.44
author Lucas Levrel <llevrel@yahoo.fr>
date Thu Jan 10 21:49:04 2019 +0100 (7 months ago)
parents 2b260f668fef
children
line source
1 # SliTaz package receipt.
3 PACKAGE="othello"
4 VERSION="1.0"
5 CATEGORY="games"
6 SHORT_DESC="Othello game in javascript"
7 TARBALL="$PACKAGE-$VERSION.tar.lzma"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="http://www.posi.net/software/othello/"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 mkdir -p $src/images 2> /dev/null
16 cd $src
17 if [ ! -s othello.js ]; then
18 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
19 unlzma -c $SOURCES_REPOSITORY/$TARBALL | tar xf -
20 mv $PACKAGE-$VERSION/* .
21 else
22 wget -O $SOURCES_REPOSITORY/$TARBALL http://mirror.slitaz.org/sources/packages/o/$TARBALL &&
23 unlzma -c $SOURCES_REPOSITORY/$TARBALL | tar xf -
24 mv $PACKAGE-$VERSION/* .
25 fi
26 fi
27 #for i in index.html othello.js \
28 # images/blank.gif images/white.gif images/black.gif \
29 # images/white-trans.gif images/black-trans.gif ; do
30 # [ -s $i ] || wget -P $(dirname $i) $WEB_SITE/$i
31 #done
32 sed -i 's|TITLE>.*</TITLE|TITLE>Othello</TITLE|' index.html
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/var/www/othello $fs/usr/share/applications
39 cp -a $src/* $fs/var/www/othello
40 chown -R 80.80 $fs/var/www/othello
41 cat > $fs/usr/share/applications/othello.desktop <<EOT
42 [Desktop Entry]
43 Type=Application
44 Name=Othello
45 Exec=browser file:///var/www/othello/index.html
46 Icon=/var/www/othello/images/black.gif
47 Terminal=false
48 Categories=Game;
49 Comment=Othello game
50 EOT
51 }