wok-current annotate alieninvasion/receipt @ rev 23922
Add alieninvasion, spaceinvader, racer10k and javascript-racer
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 22 17:01:17 2020 +0000 (2020-08-22) |
parents | |
children | 34e801e0eb52 |
rev | line source |
---|---|
pascal@23922 | 1 # SliTaz package receipt. |
pascal@23922 | 2 |
pascal@23922 | 3 PACKAGE="alieninvasion" |
pascal@23922 | 4 VERSION="1.0" |
pascal@23922 | 5 GITTAG="d208e3c803c826999aa0592993c3c934dfcc5613" |
pascal@23922 | 6 CATEGORY="games" |
pascal@23922 | 7 SHORT_DESC="Invader game in html5" |
pascal@23922 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@23922 | 9 LICENSE="MIT GPL" |
pascal@23922 | 10 WEB_SITE="https://github.com/cykod/AlienInvasion" |
pascal@23922 | 11 TARBALL="$PACKAGE-$VERSION.zip" |
pascal@23922 | 12 WGET_URL="$WEB_SITE/archive/$GITTAG.zip" |
pascal@23922 | 13 HOST_ARCH="any" |
pascal@23922 | 14 |
pascal@23922 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@23922 | 16 genpkg_rules() |
pascal@23922 | 17 { |
pascal@23922 | 18 mkdir -p $fs/var/www/alieninvasion $fs/usr/share/applications |
pascal@23922 | 19 cp -a $src/[a-z]* $fs/var/www/alieninvasion |
pascal@23922 | 20 chown -R 80.80 $fs/var/www/alieninvasion |
pascal@23922 | 21 cat > $fs/usr/share/applications/alieninvasion.desktop <<EOT |
pascal@23922 | 22 [Desktop Entry] |
pascal@23922 | 23 Type=Application |
pascal@23922 | 24 Name=Alien invasion |
pascal@23922 | 25 Exec=sh -c "url=file:///var/www/alieninvasion/index.html; tazweb --notoolbar \$url || browser \$url" |
pascal@23922 | 26 Terminal=false |
pascal@23922 | 27 Categories=Game; |
pascal@23922 | 28 Icon=applications-games |
pascal@23922 | 29 EOT |
pascal@23922 | 30 } |