wok-next view othello/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d635206a5649
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="othello"
4 VERSION="1.0"
5 CATEGORY="games"
6 SHORT_DESC="Othello game in javascript"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://web.archive.org/web/20101231221346/http://www.posi.net:80/software/othello/"
10 HOST_ARCH="any"
12 TARBALL="$PACKAGE-$VERSION.tar.lzma"
14 compile_rules() {
15 mkdir -p $src/images 2>/dev/null
16 cd $src
17 if [ ! -s othello.js ]; then
18 if [ -f $SRC/$TARBALL ]; then
19 unlzma -c $SRC/$TARBALL | tar xf -
20 mv $PACKAGE-$VERSION/* .
21 else
22 wget -O $SRC/$TARBALL http://mirror.slitaz.org/sources/packages/o/$TARBALL &&
23 unlzma -c $SRC/$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
34 mkdir -p $install/var/www/othello
35 cp -a $src/* $install/var/www/othello
36 chown -R 80.80 $install/var/www/othello
38 install -Dm644 $stuff/othello.desktop $install/usr/share/applications/othello.desktop
39 }