wok-next view othello/receipt @ rev 20514

ardour, gdal, icu, js, jsoncpp, libvpx, llvm, mesa, minetest, opencv, qt5, scilab, webkit2gtk, webkitgtk, xalan-c: remove std.patch, use `fix math`.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 21 16:15:19 2018 +0200 (2018-03-21)
parents f13bd223c231
children d5aab818505e
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="http://www.posi.net/software/othello/"
11 TARBALL="$PACKAGE-$VERSION.tar.lzma"
13 compile_rules() {
14 mkdir -p $src/images 2>/dev/null
15 cd $src
16 if [ ! -s othello.js ]; then
17 if [ -f $SRC/$TARBALL ]; then
18 unlzma -c $SRC/$TARBALL | tar xf -
19 mv $PACKAGE-$VERSION/* .
20 else
21 wget -O $SRC/$TARBALL http://mirror.slitaz.org/sources/packages/o/$TARBALL &&
22 unlzma -c $SRC/$TARBALL | tar xf -
23 mv $PACKAGE-$VERSION/* .
24 fi
25 fi
26 #for i in index.html othello.js \
27 # images/blank.gif images/white.gif images/black.gif \
28 # images/white-trans.gif images/black-trans.gif ; do
29 # [ -s $i ] || wget -P $(dirname $i) $WEB_SITE/$i
30 #done
31 sed -i 's|TITLE>.*</TITLE|TITLE>Othello</TITLE|' index.html
33 mkdir -p \
34 $install/var/www/othello \
35 $install/usr/share/applications
36 cp -a $src/* $install/var/www/othello
37 chown -R 80.80 $install/var/www/othello
38 cat > $install/usr/share/applications/othello.desktop <<EOT
39 [Desktop Entry]
40 Type=Application
41 Name=Othello
42 Exec=browser file:///var/www/othello/index.html
43 Icon=/var/www/othello/images/black.gif
44 Terminal=false
45 Categories=Game;
46 Comment=Othello game
47 EOT
48 }
50 genpkg_rules() {
51 copy @std
52 }