wok-next annotate othello/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents b278b2018965
children d635206a5649
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/"
pascal@7047 10
al@20481 11 TARBALL="$PACKAGE-$VERSION.tar.lzma"
al@20481 12
al@20481 13 compile_rules() {
al@20481 14 mkdir -p $src/images 2>/dev/null
pascal@7047 15 cd $src
slaxemulator@8982 16 if [ ! -s othello.js ]; then
al@20481 17 if [ -f $SRC/$TARBALL ]; then
al@20481 18 unlzma -c $SRC/$TARBALL | tar xf -
slaxemulator@8982 19 mv $PACKAGE-$VERSION/* .
slaxemulator@8982 20 else
al@20481 21 wget -O $SRC/$TARBALL http://mirror.slitaz.org/sources/packages/o/$TARBALL &&
al@20481 22 unlzma -c $SRC/$TARBALL | tar xf -
slaxemulator@8982 23 mv $PACKAGE-$VERSION/* .
slaxemulator@8982 24 fi
pascal@8947 25 fi
slaxemulator@8982 26 #for i in index.html othello.js \
slaxemulator@8982 27 # images/blank.gif images/white.gif images/black.gif \
al@21020 28 # images/white-trans.gif images/black-trans.gif; do
slaxemulator@8982 29 # [ -s $i ] || wget -P $(dirname $i) $WEB_SITE/$i
slaxemulator@8982 30 #done
pascal@7047 31 sed -i 's|TITLE>.*</TITLE|TITLE>Othello</TITLE|' index.html
pascal@7047 32
al@21020 33 mkdir -p $install/var/www/othello
al@20481 34 cp -a $src/* $install/var/www/othello
al@20481 35 chown -R 80.80 $install/var/www/othello
al@21020 36
al@21020 37 install -Dm644 $stuff/othello.desktop $install/usr/share/applications/othello.desktop
pascal@7047 38 }
pascal@7047 39
al@20481 40 genpkg_rules() {
al@20481 41 copy @std
al@20481 42 }