wok view javascript-racer/receipt @ rev 24445
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 14:14:23 2022 +0000 (2022-02-14) |
parents | |
children | d8c511e24c20 |
line source
1 # SliTaz package receipt.
3 PACKAGE="javascript-racer"
4 VERSION="1.0"
5 GITTAG="79198ab1485445220ceec011f54d8c2ec4e8d29d"
6 CATEGORY="games"
7 SHORT_DESC="A tux racer in html5"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://github.com/jakesgordon/javascript-racer/"
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/javascript-racer $fs/usr/share/applications
19 cp -a $src/[a-z]* $fs/var/www/javascript-racer
20 chown -R 80.80 $fs/var/www/javascript-racer
21 cat > $fs/usr/share/applications/javascript-racer.desktop <<EOT
22 [Desktop Entry]
23 Type=Application
24 Name=JSracer
25 Exec=sh -c "url=file:///var/www/javascript-racer/v4.final.html; tazweb --notoolbar \$url || browser \$url"
26 Terminal=false
27 Categories=Game;
28 Icon=applications-games
29 EOT
30 }