wok-next annotate othello/receipt @ rev 21085

Up: bison (3.2.3), cmake (3.13.2), curl (7.63.0), dbus (1.12.12), dialog (1.3-20181107), doxygen (1.8.14), e2fsprogs (1.44.5), glib (2.58.2), grep (3.3), itstool (2.0.5), jansson (2.12), jbig2dec (0.15), libfm-extra (1.3.1), libfm (1.3.1), libgpg-error (1.33), libidn (1.35), libjpeg-turbo (2.0.1), libtirpc (1.1.4), libuv (1.24.1), opus (1.3), opusfile (0.11), pango (1.42.4), pangomm (2.42.0), pcmanfm (1.3.1), rpcbind (1.2.5), rpcsvc-proto (1.4), sed (4.7), tcl (8.6.9), tslib (1.18), wget (1.20), wpa_supplicant (2.7)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Dec 25 19:30:28 2018 +0200 (2018-12-25)
parents d635206a5649
children
rev   line source
al@20481 1 # SliTaz package receipt v2.
pascal@7047 2
pascal@7047 3 PACKAGE="othello"
pascal@7047 4 VERSION="1.0"
pascal@7047 5 CATEGORY="games"
pascal@7047 6 SHORT_DESC="Othello game in javascript"
pascal@7047 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15611 8 LICENSE="MIT"
al@21020 9 WEB_SITE="https://web.archive.org/web/20101231221346/http://www.posi.net:80/software/othello/"
al@21082 10 HOST_ARCH="any"
pascal@7047 11
al@20481 12 TARBALL="$PACKAGE-$VERSION.tar.lzma"
al@20481 13
al@20481 14 compile_rules() {
al@20481 15 mkdir -p $src/images 2>/dev/null
pascal@7047 16 cd $src
slaxemulator@8982 17 if [ ! -s othello.js ]; then
al@20481 18 if [ -f $SRC/$TARBALL ]; then
al@20481 19 unlzma -c $SRC/$TARBALL | tar xf -
slaxemulator@8982 20 mv $PACKAGE-$VERSION/* .
slaxemulator@8982 21 else
al@20481 22 wget -O $SRC/$TARBALL http://mirror.slitaz.org/sources/packages/o/$TARBALL &&
al@20481 23 unlzma -c $SRC/$TARBALL | tar xf -
slaxemulator@8982 24 mv $PACKAGE-$VERSION/* .
slaxemulator@8982 25 fi
pascal@8947 26 fi
slaxemulator@8982 27 #for i in index.html othello.js \
slaxemulator@8982 28 # images/blank.gif images/white.gif images/black.gif \
al@21020 29 # images/white-trans.gif images/black-trans.gif; do
slaxemulator@8982 30 # [ -s $i ] || wget -P $(dirname $i) $WEB_SITE/$i
slaxemulator@8982 31 #done
pascal@7047 32 sed -i 's|TITLE>.*</TITLE|TITLE>Othello</TITLE|' index.html
pascal@7047 33
al@21020 34 mkdir -p $install/var/www/othello
al@20481 35 cp -a $src/* $install/var/www/othello
al@20481 36 chown -R 80.80 $install/var/www/othello
al@21020 37
al@21020 38 install -Dm644 $stuff/othello.desktop $install/usr/share/applications/othello.desktop
pascal@7047 39 }