wok view sokojs/receipt @ rev 24939

f2c: add libf2c
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 15 16:15:33 2022 +0000 (2022-04-15)
parents db9d9cb3c164
children d66160614dc4
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 # What is the latest version available today?
14 current_version()
15 {
16 # https://github.com/framasoft/framagames/tree/master/sokojs
17 wget -O - https://github.com/michbuze/sokojs/commits/master 2>/dev/null | \
18 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y -d
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 dos2unix *.htm *.txt
25 sed -i '/sokojs.zip/d;/src.htm/d' level.htm
26 sed -i 's|Online.* ) ||' sokojs.htm
27 patch -p0 < $stuff/sokojs.u
28 patch -p0 < $stuff/undo.u
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/var/www $fs/usr/share/applications $install/usr/share/doc
35 cp -a $src $fs/var/www/sokojs
36 cp -a $stuff/*.sh $fs/var/www/sokojs
37 mv $fs/var/www/sokojs/*.txt $install/usr/share/doc
38 cat > $fs/usr/share/applications/Sokoban.desktop <<EOT
39 [Desktop Entry]
40 Type=Application
41 Name=Sokoban
42 Comment=Plateform game (get 39000 levels with /var/www/sokojs/levels.sh)
43 Exec=sh -c "url=http://127.0.0.1/sokojs/main.htm ; tazweb --notoolbar \\\$url || browser \\\$url"
44 Icon=/var/www/sokojs/4.gif
45 Terminal=false
46 Categories=Game
47 EOT
48 }