# SliTaz package receipt. PACKAGE="boulderdash" VERSION="0" CATEGORY="games" SHORT_DESC="C64 classic Boulderdash in HTML5 and JavaScript" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MIT" TARBALL="$PACKAGE-$VERSION.zip" WEB_SITE="https://codeincomplete.com/posts/2011/10/25/javascript_boulderdash/" WGET_URL="https://codeload.github.com/jakesgordon/javascript-boulderdash/zip/master" # What is the latest version available today? current_version() { wget -O - https://github.com/jakesgordon/javascript-boulderdash/commits/master 2>/dev/null | \ sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/applications $fs/var/www/boulderdash \ $install/usr/share/doc cp -a $src/* $fs/var/www/boulderdash mv $fs/var/www/boulderdash/README.md $install/usr/share/doc cat > $fs/usr/share/applications/boulderdash.desktop <