wok-current annotate javascript-racer/receipt @ rev 24868
updated lxc and lxc-dev (3.2.1 -> 4.0.12)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 30 17:49:17 2022 +0100 (2022-03-30) |
parents | 430465ced547 |
children | e1e1678c5265 |
rev | line source |
---|---|
pascal@23922 | 1 # SliTaz package receipt. |
pascal@23922 | 2 |
pascal@23922 | 3 PACKAGE="javascript-racer" |
pascal@23922 | 4 VERSION="1.0" |
pascal@23922 | 5 GITTAG="79198ab1485445220ceec011f54d8c2ec4e8d29d" |
pascal@23922 | 6 CATEGORY="games" |
pascal@23922 | 7 SHORT_DESC="A tux racer in html5" |
pascal@23922 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@23922 | 9 LICENSE="MIT" |
pascal@23922 | 10 WEB_SITE="https://github.com/jakesgordon/javascript-racer/" |
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@24491 | 15 # What is the latest version available today? |
pascal@24491 | 16 current_version() |
pascal@24491 | 17 { |
pascal@24491 | 18 wget -O - https://github.com/jakesgordon/javascript-racer/commits/master 2>/dev/null | \ |
pascal@24491 | 19 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q' |
pascal@24491 | 20 } |
pascal@24491 | 21 |
pascal@23922 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@23922 | 23 genpkg_rules() |
pascal@23922 | 24 { |
pascal@23922 | 25 mkdir -p $fs/var/www/javascript-racer $fs/usr/share/applications |
pascal@23922 | 26 cp -a $src/[a-z]* $fs/var/www/javascript-racer |
pascal@23922 | 27 chown -R 80.80 $fs/var/www/javascript-racer |
pascal@23922 | 28 cat > $fs/usr/share/applications/javascript-racer.desktop <<EOT |
pascal@23922 | 29 [Desktop Entry] |
pascal@23922 | 30 Type=Application |
pascal@23922 | 31 Name=JSracer |
pascal@23922 | 32 Exec=sh -c "url=file:///var/www/javascript-racer/v4.final.html; tazweb --notoolbar \$url || browser \$url" |
pascal@23922 | 33 Terminal=false |
pascal@23922 | 34 Categories=Game; |
pascal@23922 | 35 Icon=applications-games |
pascal@23922 | 36 EOT |
pascal@23922 | 37 } |