wok annotate othello/receipt @ rev 24445
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 14:14:23 2022 +0000 (2022-02-14) |
parents | f13bd223c231 |
children | 1a6eb3793a9e |
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@7047 | 11 WEB_SITE="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 |