wok view 2048/receipt @ rev 25294

updated screen, screen-pam and screen-terminfo (4.8.0 -> 4.9.0)
author Hans-G?nter Theisgen
date Tue Jul 19 17:34:06 2022 +0100 (2022-07-19)
parents 34e801e0eb52
children c470ca10c896
line source
1 # SliTaz package receipt.
3 PACKAGE="2048"
4 VERSION="1.0"
5 GITTAG="4b5f17e666c9effaabdca9c12ee017fae08360bd"
6 CATEGORY="games"
7 SHORT_DESC="A 2048 game clone with undo support"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://github.com/alokmenghrajani/2048"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="$WEB_SITE/archive/$GITTAG.zip"
13 HOST_ARCH="any"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
19 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/var/www/2048 $fs/usr/share/applications
26 cp -a $src/[a-z]* $fs/var/www/2048
27 sed -i '/<script>/,/<\/script>/d' $fs/var/www/2048/index.html
28 chown -R 80.80 $fs/var/www/2048
29 cat > $fs/usr/share/applications/2048.desktop <<EOT
30 [Desktop Entry]
31 Type=Application
32 Name=2048
33 Exec=sh -c "url=file:///var/www/2048/index.html; tazweb --notoolbar \$url || browser \$url"
34 Terminal=false
35 Categories=Game;
36 Icon=applications-games
37 EOT
38 }