wok view digger/receipt @ rev 24651
updated i2c-tools and i2c-tools-dev (4.1 -> 4.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 10 17:14:42 2022 +0100 (2022-03-10) |
parents | 724cde682e25 |
children | e1e1678c5265 |
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://codeload.github.com/lutzroeder/digger/zip/master"
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_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
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 }