wok view sokojs/receipt @ rev 25672
Up minidlna (1.3.3), phpmyadmin (5.2.1), pidgin (2.14.13), redis (7.2.4), rsync (3.2.7), rust (1.76.0), screen (4.9.1), squashfs (4.6.1), squid (6.7), stunnel (5.72), tcpdump (4.99.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 26 14:07:44 2024 +0000 (10 months ago) |
parents | 669f61f44760 |
children | c965782a38e0 |
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%m%d -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 }