# SliTaz package receipt. PACKAGE="2048" VERSION="1.0" GITTAG="4b5f17e666c9effaabdca9c12ee017fae08360bd" CATEGORY="games" SHORT_DESC="A 2048 game clone with undo support" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MIT" WEB_SITE="https://github.com/alokmenghrajani/2048" 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/2048 $fs/usr/share/applications cp -a $src/[a-z]* $fs/var/www/2048 sed -i '/