wok-6.x annotate Connect-Four/receipt @ rev 25443
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 03 09:28:15 2022 +0000 (2022-09-03) |
parents | 34e801e0eb52 |
children |
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@24497 | 15 # What is the latest version available today? |
pascal@24497 | 16 current_version() |
pascal@24497 | 17 { |
pascal@24497 | 18 wget -O - $WEB_SITE/commits/master 2>/dev/null | \ |
pascal@24974 | 19 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d |
pascal@24497 | 20 } |
pascal@24497 | 21 |
pascal@23925 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@23925 | 23 genpkg_rules() |
pascal@23925 | 24 { |
pascal@23925 | 25 mkdir -p $fs/var/www/Connect-Four $fs/usr/share/applications |
pascal@23925 | 26 cp -a $src/[a-z]* $fs/var/www/Connect-Four |
pascal@23925 | 27 sed -i '/<script>/,/<\/script>/d' $fs/var/www/Connect-Four/index.html |
pascal@23925 | 28 chown -R 80.80 $fs/var/www/Connect-Four |
pascal@23925 | 29 cat > $fs/usr/share/applications/Connect-Four.desktop <<EOT |
pascal@23925 | 30 [Desktop Entry] |
pascal@23925 | 31 Type=Application |
pascal@23925 | 32 Name=4 in a raw |
pascal@23925 | 33 Name[fr]=4 en ligne |
pascal@23925 | 34 Exec=sh -c "url=file:///var/www/Connect-Four/index.html; tazweb --notoolbar \$url || browser \$url" |
pascal@23925 | 35 Terminal=false |
pascal@23925 | 36 Categories=Game; |
pascal@23925 | 37 Icon=applications-games |
pascal@23925 | 38 EOT |
pascal@23925 | 39 } |