wok view spaceinvaders/receipt @ rev 23973

Up openconnect (8.10), openexr (2.5.3), openldap (2.4.55), openssh (8.4p1), openvswitch (2.14.0), phpmyadmin (5.0.4), rust (1.47.0), shellinabox (2.21)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 28 12:04:50 2020 +0000 (2020-10-28)
parents
children 34e801e0eb52
line source
1 # SliTaz package receipt.
3 PACKAGE="spaceinvaders"
4 VERSION="1.0"
5 GITTAG="51edabf0b3af6d9e224360ae9e7f4502ac15fc84"
6 CATEGORY="games"
7 SHORT_DESC="Invader game in html5"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://github.com/StrykerKKD/SpaceInvaders"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="$WEB_SITE/archive/$GITTAG.zip"
13 HOST_ARCH="any"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/var/www/spaceinvaders $fs/usr/share/applications
19 cp -a $src/[a-z]* $fs/var/www/spaceinvaders
20 chown -R 80.80 $fs/var/www/spaceinvaders
21 cat > $fs/usr/share/applications/spaceinvaders.desktop <<EOT
22 [Desktop Entry]
23 Type=Application
24 Name=Space invaders
25 Exec=sh -c "url=file:///var/www/spaceinvaders/index.html; tazweb --notoolbar \$url || browser \$url"
26 Terminal=false
27 Categories=Game;
28 Icon=applications-games
29 EOT
30 }