wok-6.x annotate sokojs/receipt @ rev 24176
Add glza
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 30 18:02:41 2021 +0000 (2021-12-30) |
parents | c207e28d59ee |
children | 669f61f44760 |
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@24131 | 20 patch -p0 < $stuff/undo.u |
pascal@24117 | 21 } |
pascal@24117 | 22 |
pascal@24117 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@24117 | 24 genpkg_rules() |
pascal@24117 | 25 { |
pascal@24117 | 26 mkdir -p $fs/var/www $fs/usr/share/applications $install/usr/share/doc |
pascal@24128 | 27 cp -a $src $fs/var/www/sokojs |
pascal@24128 | 28 cp -a $stuff/*.sh $fs/var/www/sokojs |
pascal@24117 | 29 mv $fs/var/www/sokojs/*.txt $install/usr/share/doc |
pascal@24117 | 30 cat > $fs/usr/share/applications/Sokoban.desktop <<EOT |
pascal@24117 | 31 [Desktop Entry] |
pascal@24117 | 32 Type=Application |
pascal@24117 | 33 Name=Sokoban |
pascal@24127 | 34 Comment=Plateform game (get 39000 levels with /var/www/sokojs/levels.sh) |
pascal@24117 | 35 Exec=sh -c "url=http://127.0.0.1/sokojs/main.htm ; tazweb --notoolbar \\\$url || browser \\\$url" |
pascal@24117 | 36 Icon=/var/www/sokojs/4.gif |
pascal@24117 | 37 Terminal=false |
pascal@24117 | 38 Categories=Game |
pascal@24117 | 39 EOT |
pascal@24117 | 40 } |