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