wok annotate Connect-Four/receipt @ rev 24417

created recipes for perl-cairo-gobject, perl-glib-object-introspection and perl-gtk3
author Hans-G?nter Theisgen
date Fri Feb 11 09:16:47 2022 +0100 (2022-02-11)
parents
children 34e801e0eb52
rev   line source
pascal@23925 1 # SliTaz package receipt.
pascal@23925 2
pascal@23925 3 PACKAGE="Connect-Four"
pascal@23925 4 VERSION="1.0"
pascal@23925 5 GITTAG="fa4bbe1fbd6158fa4504d3cb832d8d4af4d3f805"
pascal@23925 6 CATEGORY="games"
pascal@23925 7 SHORT_DESC="A Connect Four game in JavaScript"
pascal@23925 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@23925 9 LICENSE="unknown"
pascal@23925 10 WEB_SITE="https://github.com/OmarAlEisa/Connect-Four"
pascal@23925 11 TARBALL="$PACKAGE-$VERSION.zip"
pascal@23925 12 WGET_URL="$WEB_SITE/archive/$GITTAG.zip"
pascal@23925 13 HOST_ARCH="any"
pascal@23925 14
pascal@23925 15 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@23925 16 genpkg_rules()
pascal@23925 17 {
pascal@23925 18 mkdir -p $fs/var/www/Connect-Four $fs/usr/share/applications
pascal@23925 19 cp -a $src/[a-z]* $fs/var/www/Connect-Four
pascal@23925 20 sed -i '/<script>/,/<\/script>/d' $fs/var/www/Connect-Four/index.html
pascal@23925 21 chown -R 80.80 $fs/var/www/Connect-Four
pascal@23925 22 cat > $fs/usr/share/applications/Connect-Four.desktop <<EOT
pascal@23925 23 [Desktop Entry]
pascal@23925 24 Type=Application
pascal@23925 25 Name=4 in a raw
pascal@23925 26 Name[fr]=4 en ligne
pascal@23925 27 Exec=sh -c "url=file:///var/www/Connect-Four/index.html; tazweb --notoolbar \$url || browser \$url"
pascal@23925 28 Terminal=false
pascal@23925 29 Categories=Game;
pascal@23925 30 Icon=applications-games
pascal@23925 31 EOT
pascal@23925 32 }