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