wok-6.x view digger/receipt @ rev 25107

Up open-iscsi (2.0.873)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 22 17:23:49 2022 +0000 (2022-06-22)
parents d8c511e24c20
children
line source
1 # SliTaz package receipt.
3 PACKAGE="digger"
4 VERSION="0"
5 CATEGORY="games"
6 SHORT_DESC="Boulderdash in HTML5 and JavaScript"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="unknown"
9 TARBALL="$PACKAGE-$VERSION.zip"
10 WEB_SITE="https://www.lutzroeder.com/web/"
11 WGET_URL="https://github.com/lutzroeder/digger/archive/refs/heads/main.zip"
13 # What is the latest version available today?
14 current_version()
15 {
16 wget -O - https://github.com/lutzroeder/digger/commits/main 2>/dev/null | \
17 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
18 }
20 # Rules to gen a SliTaz package suitable for Tazpkg.
21 genpkg_rules()
22 {
23 mkdir -p $fs/usr/share/applications $fs/var/www/digger \
24 $install/usr/share/doc
25 cp -a $src/README.md $install/usr/share/doc
26 cp -a $src/index.html $src/digger.js $fs/var/www/digger
27 dos2unix $fs/var/www/digger/*
28 cat > $fs/usr/share/applications/digger.desktop <<EOT
29 [Desktop Entry]
30 Type=Application
31 Encoding=UTF-8
32 Name=Digger
33 Exec=sh -c "url=file:///var/www/digger/index.html ; tazweb --notoolbar \\\$url || browser \\\$url"
34 Terminal=false
35 Categories=Application;Game;
36 EOT
37 }