wok annotate boulderdash/receipt @ rev 25747
thunar: replaced dependency libxfconf by xfconf
author | Hans-G?nter Theisgen |
---|---|
date | Sat Aug 31 09:37:15 2024 +0100 (4 months ago) |
parents | c470ca10c896 |
children |
rev | line source |
---|---|
pascal@20514 | 1 # SliTaz package receipt. |
pascal@20514 | 2 |
pascal@20514 | 3 PACKAGE="boulderdash" |
pascal@25604 | 4 GITHASH="f2fca2eda636e2a072fcec6205028bf222e0710e" |
pascal@25604 | 5 VERSION="20111129" |
pascal@20514 | 6 CATEGORY="games" |
pascal@20514 | 7 SHORT_DESC="C64 classic Boulderdash in HTML5 and JavaScript" |
pascal@20514 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20514 | 9 LICENSE="MIT" |
pascal@20514 | 10 TARBALL="$PACKAGE-$VERSION.zip" |
pascal@20669 | 11 WEB_SITE="https://codeincomplete.com/posts/2011/10/25/javascript_boulderdash/" |
pascal@25604 | 12 WGET_URL="https://codeload.github.com/jakesgordon/javascript-boulderdash/zip/$GITHASH" |
pascal@20514 | 13 |
pascal@24491 | 14 # What is the latest version available today? |
pascal@24491 | 15 current_version() |
pascal@24491 | 16 { |
pascal@24491 | 17 wget -O - https://github.com/jakesgordon/javascript-boulderdash/commits/master 2>/dev/null | \ |
pascal@25674 | 18 sed 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;q' |
pascal@24491 | 19 } |
pascal@24491 | 20 |
pascal@20514 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20514 | 22 genpkg_rules() |
pascal@20514 | 23 { |
pascal@20514 | 24 mkdir -p $fs/usr/share/applications $fs/var/www/boulderdash \ |
pascal@20514 | 25 $install/usr/share/doc |
pascal@20514 | 26 cp -a $src/* $fs/var/www/boulderdash |
pascal@20514 | 27 mv $fs/var/www/boulderdash/README.md $install/usr/share/doc |
pascal@20514 | 28 cat > $fs/usr/share/applications/boulderdash.desktop <<EOT |
pascal@20514 | 29 [Desktop Entry] |
pascal@20514 | 30 Type=Application |
pascal@20514 | 31 Encoding=UTF-8 |
pascal@20514 | 32 Name=Boulderdash |
pascal@20514 | 33 Exec=sh -c "url=http://127.0.0.1/boulderdash/index.html ; tazweb --notoolbar \\\$url || browser \\\$url" |
pascal@20514 | 34 Terminal=false |
pascal@20514 | 35 Categories=Application;Game; |
pascal@20514 | 36 EOT |
pascal@20514 | 37 } |