wok-6.x annotate othello/receipt @ rev 11893
busybox: add AUFS_NOT_SUPPORTED
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 29 11:50:38 2012 +0100 (2012-02-29) |
parents | c2e7ccf93d10 |
children | f13bd223c231 |
rev | line source |
---|---|
pascal@7047 | 1 # SliTaz package receipt. |
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@8947 | 7 TARBALL="$PACKAGE-$VERSION.tar.lzma" |
pascal@7047 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@7047 | 9 WEB_SITE="http://www.posi.net/software/othello/" |
pascal@7047 | 10 |
pascal@7047 | 11 # Rules to configure and make the package. |
pascal@7047 | 12 compile_rules() |
pascal@7047 | 13 { |
pascal@7047 | 14 mkdir -p $src/images 2> /dev/null |
pascal@7047 | 15 cd $src |
slaxemulator@8982 | 16 if [ ! -s othello.js ]; then |
slaxemulator@8982 | 17 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then |
slaxemulator@8982 | 18 unlzma -c $SOURCES_REPOSITORY/$TARBALL | tar xf - |
slaxemulator@8982 | 19 mv $PACKAGE-$VERSION/* . |
slaxemulator@8982 | 20 else |
slaxemulator@8982 | 21 wget -O $SOURCES_REPOSITORY/$TARBALL http://mirror.slitaz.org/sources/packages/o/$TARBALL && |
slaxemulator@8982 | 22 unlzma -c $SOURCES_REPOSITORY/$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 \ |
slaxemulator@8982 | 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 } |
pascal@7047 | 33 |
pascal@7047 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@7047 | 35 genpkg_rules() |
pascal@7047 | 36 { |
pascal@7047 | 37 mkdir -p $fs/var/www/othello $fs/usr/share/applications |
pascal@7047 | 38 cp -a $src/* $fs/var/www/othello |
pascal@7047 | 39 chown -R 80.80 $fs/var/www/othello |
pascal@7047 | 40 cat > $fs/usr/share/applications/othello.desktop <<EOT |
pascal@7047 | 41 [Desktop Entry] |
pascal@7047 | 42 Type=Application |
pascal@7047 | 43 Name=Othello |
slaxemulator@9600 | 44 Exec=browser file:///var/www/othello/index.html |
pascal@7047 | 45 Icon=/var/www/othello/images/black.gif |
pascal@7047 | 46 Terminal=false |
pascal@7047 | 47 Categories=Game; |
pascal@7047 | 48 Comment=Othello game |
pascal@7047 | 49 EOT |
pascal@7047 | 50 } |
pascal@7047 | 51 |