wok annotate othello/receipt @ rev 25570

created recipe for rubberband-dev
author Hans-G?nter Theisgen
date Sat May 13 10:31:53 2023 +0100 (18 months ago)
parents 6a937d641b10
children
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@22337 8 WGET_URL="http://mirror.slitaz.org/sources/packages/o/$TARBALL"
pascal@7047 9 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15611 10 LICENSE="MIT"
pascal@25417 11 WEB_SITE="https://web.archive.org/web/20101231221346/http://www.posi.net/software/othello/"
pascal@7047 12
pascal@7047 13 # Rules to configure and make the package.
pascal@7047 14 compile_rules()
pascal@7047 15 {
pascal@7047 16 sed -i 's|TITLE>.*</TITLE|TITLE>Othello</TITLE|' index.html
pascal@7047 17 }
pascal@7047 18
pascal@7047 19 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@7047 20 genpkg_rules()
pascal@7047 21 {
pascal@7047 22 mkdir -p $fs/var/www/othello $fs/usr/share/applications
pascal@7047 23 cp -a $src/* $fs/var/www/othello
pascal@7047 24 chown -R 80.80 $fs/var/www/othello
pascal@7047 25 cat > $fs/usr/share/applications/othello.desktop <<EOT
pascal@7047 26 [Desktop Entry]
pascal@7047 27 Type=Application
pascal@7047 28 Name=Othello
slaxemulator@9600 29 Exec=browser file:///var/www/othello/index.html
pascal@7047 30 Icon=/var/www/othello/images/black.gif
pascal@7047 31 Terminal=false
pascal@7047 32 Categories=Game;
pascal@7047 33 Comment=Othello game
pascal@7047 34 EOT
pascal@7047 35 }
pascal@7047 36