wok-current view digger/receipt @ rev 21605
Up opus (1.3.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 23 13:26:20 2019 +0200 (2019-05-23) |
parents | |
children | d8c511e24c20 |
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 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 mkdir -p $fs/usr/share/applications $fs/var/www/digger \
17 $install/usr/share/doc
18 cp -a $src/README.md $install/usr/share/doc
19 cp -a $src/index.html $src/digger.js $fs/var/www/digger
20 dos2unix $fs/var/www/digger/*
21 cat > $fs/usr/share/applications/digger.desktop <<EOT
22 [Desktop Entry]
23 Type=Application
24 Encoding=UTF-8
25 Name=Digger
26 Exec=sh -c "url=file:///var/www/digger/index.html ; tazweb --notoolbar \\\$url || browser \\\$url"
27 Terminal=false
28 Categories=Application;Game;
29 EOT
30 }