Receipt for package "sokojs"
# SliTaz package receipt. PACKAGE="sokojs" VERSION="2015" CATEGORY="games" SHORT_DESC="Sokoban clone in HTML / CSS / Javascript" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.zip" WEB_SITE="http://buze.michel.chez.com/Boxworld/src.htm" WGET_URL=""http://buze.michel.chez.com/sokojs.zip">http://buze.michel.chez.com/sokojs.zip" # What is the latest version available today? current_version() { # https://github.com/framasoft/framagames/tree/master/sokojs wget -O - https://github.com/michbuze/sokojs/commits/master 2>/dev/null | \ sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y -d } # Rules to configure and make the package. compile_rules() { dos2unix *.htm *.txt sed -i '/sokojs.zip/d;/src.htm/d' level.htm sed -i 's|Online.* ) ||' sokojs.htm patch -p0 < $stuff/sokojs.u patch -p0 < $stuff/undo.u } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/var/www $fs/usr/share/applications $install/usr/share/doc cp -a $src $fs/var/www/sokojs cp -a $stuff/*.sh $fs/var/www/sokojs mv $fs/var/www/sokojs/*.txt $install/usr/share/doc cat > $fs/usr/share/applications/Sokoban.desktop <<EOT [Desktop Entry] Type=Application Name=Sokoban Comment=Plateform game (get 39000 levels with /var/www/sokojs/levels.sh) Exec=sh -c "url=http://127.0.0.1/sokojs/main.htm ; tazweb --notoolbar \\\$url || browser \\\$url" Icon=/var/www/sokojs/4.gif Terminal=false Categories=Game EOT }
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)