wok annotate 2048/receipt @ rev 24972

Up lzsa (1.3.11)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 01 08:42:44 2022 +0000 (2022-05-01)
parents 98fc8296e0a1
children e1e1678c5265
rev   line source
pascal@23915 1 # SliTaz package receipt.
pascal@23915 2
pascal@23915 3 PACKAGE="2048"
pascal@23915 4 VERSION="1.0"
pascal@23915 5 GITTAG="4b5f17e666c9effaabdca9c12ee017fae08360bd"
pascal@23915 6 CATEGORY="games"
pascal@23915 7 SHORT_DESC="A 2048 game clone with undo support"
pascal@23915 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@23915 9 LICENSE="MIT"
pascal@23915 10 WEB_SITE="https://github.com/alokmenghrajani/2048"
pascal@23915 11 TARBALL="$PACKAGE-$VERSION.zip"
pascal@23915 12 WGET_URL="$WEB_SITE/archive/$GITTAG.zip"
pascal@23915 13 HOST_ARCH="any"
pascal@23915 14
pascal@24497 15 # What is the latest version available today?
pascal@24497 16 current_version()
pascal@24497 17 {
pascal@24497 18 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
pascal@24497 19 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
pascal@24497 20 }
pascal@24497 21
pascal@23915 22 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@23915 23 genpkg_rules()
pascal@23915 24 {
pascal@23915 25 mkdir -p $fs/var/www/2048 $fs/usr/share/applications
pascal@23915 26 cp -a $src/[a-z]* $fs/var/www/2048
pascal@23915 27 sed -i '/<script>/,/<\/script>/d' $fs/var/www/2048/index.html
pascal@23915 28 chown -R 80.80 $fs/var/www/2048
pascal@23915 29 cat > $fs/usr/share/applications/2048.desktop <<EOT
pascal@23915 30 [Desktop Entry]
pascal@23915 31 Type=Application
pascal@23915 32 Name=2048
pascal@23915 33 Exec=sh -c "url=file:///var/www/2048/index.html; tazweb --notoolbar \$url || browser \$url"
pascal@23915 34 Terminal=false
pascal@23915 35 Categories=Game;
pascal@23915 36 Icon=applications-games
pascal@23915 37 EOT
pascal@23915 38 }