wok diff 2048/receipt @ rev 24123
Add Arkanoid
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 06 08:15:26 2021 +0000 (2021-10-06) |
parents | |
children | 34e801e0eb52 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/2048/receipt Wed Oct 06 08:15:26 2021 +0000 1.3 @@ -0,0 +1,31 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="2048" 1.7 +VERSION="1.0" 1.8 +GITTAG="4b5f17e666c9effaabdca9c12ee017fae08360bd" 1.9 +CATEGORY="games" 1.10 +SHORT_DESC="A 2048 game clone with undo support" 1.11 +MAINTAINER="pascal.bellard@slitaz.org" 1.12 +LICENSE="MIT" 1.13 +WEB_SITE="https://github.com/alokmenghrajani/2048" 1.14 +TARBALL="$PACKAGE-$VERSION.zip" 1.15 +WGET_URL="$WEB_SITE/archive/$GITTAG.zip" 1.16 +HOST_ARCH="any" 1.17 + 1.18 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.19 +genpkg_rules() 1.20 +{ 1.21 + mkdir -p $fs/var/www/2048 $fs/usr/share/applications 1.22 + cp -a $src/[a-z]* $fs/var/www/2048 1.23 + sed -i '/<script>/,/<\/script>/d' $fs/var/www/2048/index.html 1.24 + chown -R 80.80 $fs/var/www/2048 1.25 + cat > $fs/usr/share/applications/2048.desktop <<EOT 1.26 +[Desktop Entry] 1.27 +Type=Application 1.28 +Name=2048 1.29 +Exec=sh -c "url=file:///var/www/2048/index.html; tazweb --notoolbar \$url || browser \$url" 1.30 +Terminal=false 1.31 +Categories=Game; 1.32 +Icon=applications-games 1.33 +EOT 1.34 +}