wok view sokojs/receipt @ rev 24203

updated perl-exporter-tiny (1.002001 -> 1.002002)
author Hans-G?nter Theisgen
date Fri Dec 31 15:25:57 2021 +0100 (2021-12-31)
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 }