wok-current view digger/receipt @ rev 25303
updated shared-mime-info and shared-mime-info-dev (1.15 -> 2.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 20 09:08:48 2022 +0100 (2022-07-20) |
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 }