wok-6.x view alieninvasion/receipt @ rev 24092
Up get-pcem-roms (2.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 18 13:15:53 2021 +0000 (2021-07-18) |
parents | |
children | 34e801e0eb52 |
line source
1 # SliTaz package receipt.
3 PACKAGE="alieninvasion"
4 VERSION="1.0"
5 GITTAG="d208e3c803c826999aa0592993c3c934dfcc5613"
6 CATEGORY="games"
7 SHORT_DESC="Invader game in html5"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT GPL"
10 WEB_SITE="https://github.com/cykod/AlienInvasion"
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/alieninvasion $fs/usr/share/applications
19 cp -a $src/[a-z]* $fs/var/www/alieninvasion
20 chown -R 80.80 $fs/var/www/alieninvasion
21 cat > $fs/usr/share/applications/alieninvasion.desktop <<EOT
22 [Desktop Entry]
23 Type=Application
24 Name=Alien invasion
25 Exec=sh -c "url=file:///var/www/alieninvasion/index.html; tazweb --notoolbar \$url || browser \$url"
26 Terminal=false
27 Categories=Game;
28 Icon=applications-games
29 EOT
30 }