wok view javascript-racer/receipt @ rev 25672

Up minidlna (1.3.3), phpmyadmin (5.2.1), pidgin (2.14.13), redis (7.2.4), rsync (3.2.7), rust (1.76.0), screen (4.9.1), squashfs (4.6.1), squid (6.7), stunnel (5.72), tcpdump (4.99.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 26 14:07:44 2024 +0000 (10 months ago)
parents e1e1678c5265
children a66f312c374b
line source
1 # SliTaz package receipt.
3 PACKAGE="javascript-racer"
4 VERSION="20160105"
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 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://github.com/jakesgordon/javascript-racer/commits/master 2>/dev/null | \
19 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/var/www/javascript-racer $fs/usr/share/applications
26 cp -a $src/[a-z]* $fs/var/www/javascript-racer
27 chown -R 80.80 $fs/var/www/javascript-racer
28 cat > $fs/usr/share/applications/javascript-racer.desktop <<EOT
29 [Desktop Entry]
30 Type=Application
31 Name=JSracer
32 Exec=sh -c "url=file:///var/www/javascript-racer/v4.final.html; tazweb --notoolbar \$url || browser \$url"
33 Terminal=false
34 Categories=Game;
35 Icon=applications-games
36 EOT
37 }