# SliTaz package receipt. PACKAGE="minesweeper" VERSION="1.0" GITTAG="9a2add13bacfa9849a1c2abf0898e4b461203001" CATEGORY="games" SHORT_DESC="Windows 95 classic game clone" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="unknown" WEB_SITE="https://github.com/minesweeper/minesweeper-coffeescript" TARBALL="$PACKAGE-$VERSION.zip" WGET_URL="$WEB_SITE/archive/$GITTAG.zip" HOST_ARCH="any" # What is the latest version available today? current_version() { wget -O - $WEB_SITE/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/var/www/minesweeper $fs/usr/share/applications cp -a $src/[a-z]* $fs/var/www/minesweeper rm -f $fs/var/www/minesweeper/readme.md chown -R 80.80 $fs/var/www/minesweeper cat > $fs/usr/share/applications/minesweeper.desktop <<EOT [Desktop Entry] Type=Application Name=Minesweeper Name[fr]=Démineur Exec=sh -c "url=file:///var/www/minesweeper/index.html; tazweb --notoolbar \$url || browser \$url" Terminal=false Categories=Game; Icon=applications-games EOT }