wok rev 20514
Add boulderdash & digger
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 31 20:39:40 2018 +0100 (2018-10-31) |
parents | 87ff1f543737 |
children | 1233282eaed0 |
files | boulderdash/receipt digger/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/boulderdash/receipt Wed Oct 31 20:39:40 2018 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="boulderdash" 1.7 +VERSION="0" 1.8 +CATEGORY="games" 1.9 +SHORT_DESC="C64 classic Boulderdash in HTML5 and JavaScript" 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="MIT" 1.12 +TARBALL="$PACKAGE-$VERSION.zip" 1.13 +WEB_SITE="http://codeincomplete.com/posts/2011/10/25/javascript_boulderdash/" 1.14 +WGET_URL="https://codeload.github.com/jakesgordon/javascript-boulderdash/zip/master" 1.15 + 1.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.17 +genpkg_rules() 1.18 +{ 1.19 + mkdir -p $fs/usr/share/applications $fs/var/www/boulderdash \ 1.20 + $install/usr/share/doc 1.21 + cp -a $src/* $fs/var/www/boulderdash 1.22 + mv $fs/var/www/boulderdash/README.md $install/usr/share/doc 1.23 + cat > $fs/usr/share/applications/boulderdash.desktop <<EOT 1.24 +[Desktop Entry] 1.25 +Type=Application 1.26 +Encoding=UTF-8 1.27 +Name=Boulderdash 1.28 +Exec=sh -c "url=http://127.0.0.1/boulderdash/index.html ; tazweb --notoolbar \\\$url || browser \\\$url" 1.29 +Terminal=false 1.30 +Categories=Application;Game; 1.31 +EOT 1.32 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/digger/receipt Wed Oct 31 20:39:40 2018 +0100 2.3 @@ -0,0 +1,30 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="digger" 2.7 +VERSION="0" 2.8 +CATEGORY="games" 2.9 +SHORT_DESC="Boulderdash in HTML5 and JavaScript" 2.10 +MAINTAINER="pascal.bellard@slitaz.org" 2.11 +LICENSE="unknown" 2.12 +TARBALL="$PACKAGE-$VERSION.zip" 2.13 +WEB_SITE="https://www.lutzroeder.com/web/" 2.14 +WGET_URL="https://codeload.github.com/lutzroeder/digger/zip/master" 2.15 + 2.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.17 +genpkg_rules() 2.18 +{ 2.19 + mkdir -p $fs/usr/share/applications $fs/var/www/digger \ 2.20 + $install/usr/share/doc 2.21 + cp -a $src/README.md $install/usr/share/doc 2.22 + cp -a $src/index.html $src/digger.js $fs/var/www/digger 2.23 + dos2unix $fs/var/www/digger/* 2.24 + cat > $fs/usr/share/applications/digger.desktop <<EOT 2.25 +[Desktop Entry] 2.26 +Type=Application 2.27 +Encoding=UTF-8 2.28 +Name=Digger 2.29 +Exec=sh -c "url=file:///var/www/digger/index.html ; tazweb --notoolbar \\\$url || browser \\\$url" 2.30 +Terminal=false 2.31 +Categories=Application;Game; 2.32 +EOT 2.33 +}