wok view digger/receipt @ rev 25779
Up fdutils (5.6), lite (1.11), again
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 20 09:24:30 2024 +0000 (2 months ago) |
parents | b81ceff0b056 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="digger"
4 GITTAG="1c50d0a5b920cf5110a7e88dd6e7636282325a75"
5 VERSION="20220123"
6 CATEGORY="games"
7 SHORT_DESC="Boulderdash in HTML5 and JavaScript"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="unknown"
10 TARBALL="$PACKAGE-$VERSION.zip"
11 WEB_SITE="https://www.lutzroeder.com/web/"
12 WGET_URL="https://github.com/lutzroeder/digger/archive/$GITTAG.zip"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - https://github.com/lutzroeder/digger/commits/main 2>/dev/null | \
18 sed 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;q'
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/usr/share/applications $fs/var/www/digger \
25 $install/usr/share/doc
26 cp -a $src/README.md $install/usr/share/doc
27 cp -a $src/index.html $fs/var/www/digger
28 dos2unix $fs/var/www/digger/*
29 cat > $fs/usr/share/applications/digger.desktop <<EOT
30 [Desktop Entry]
31 Type=Application
32 Encoding=UTF-8
33 Name=Digger
34 Exec=sh -c "url=file:///var/www/digger/index.html ; tazweb --notoolbar \\\$url || browser \\\$url"
35 Terminal=false
36 Categories=Application;Game;
37 EOT
38 }