wok-6.x view sokojs/receipt @ rev 24131

lxsession, lxsession-lxpolkit, lxappearance: misc fixes (thanks Saipul)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 23 10:55:42 2021 +0000 (2021-10-23)
parents c207e28d59ee
children 669f61f44760
line source
1 # SliTaz package receipt.
3 PACKAGE="sokojs"
4 VERSION="2015"
5 CATEGORY="games"
6 SHORT_DESC="Sokoban clone in HTML / CSS / Javascript"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.zip"
10 WEB_SITE="http://buze.michel.chez.com/Boxworld/src.htm"
11 WGET_URL="http://buze.michel.chez.com/sokojs.zip"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 dos2unix *.htm *.txt
17 sed -i '/sokojs.zip/d;/src.htm/d' level.htm
18 sed -i 's|Online.* ) ||' sokojs.htm
19 patch -p0 < $stuff/sokojs.u
20 patch -p0 < $stuff/undo.u
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/var/www $fs/usr/share/applications $install/usr/share/doc
27 cp -a $src $fs/var/www/sokojs
28 cp -a $stuff/*.sh $fs/var/www/sokojs
29 mv $fs/var/www/sokojs/*.txt $install/usr/share/doc
30 cat > $fs/usr/share/applications/Sokoban.desktop <<EOT
31 [Desktop Entry]
32 Type=Application
33 Name=Sokoban
34 Comment=Plateform game (get 39000 levels with /var/www/sokojs/levels.sh)
35 Exec=sh -c "url=http://127.0.0.1/sokojs/main.htm ; tazweb --notoolbar \\\$url || browser \\\$url"
36 Icon=/var/www/sokojs/4.gif
37 Terminal=false
38 Categories=Game
39 EOT
40 }