wok annotate checker_online/receipt @ rev 25674

tiptop: race condition
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 28 11:10:12 2024 +0000 (3 months ago)
parents c470ca10c896
children
rev   line source
pascal@24118 1 # SliTaz package receipt.
pascal@24118 2
pascal@24118 3 PACKAGE="checker_online"
pascal@24118 4 GITHASH="191c29cfd72227d64f6a8db9d295fd71523bf0d7"
pascal@25604 5 VERSION="20160229"
pascal@24118 6 CATEGORY="games"
pascal@24118 7 SHORT_DESC="online chinese checker AI"
pascal@24118 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@24118 9 LICENSE="unknown"
pascal@24118 10 TARBALL="$PACKAGE-$VERSION.zip"
pascal@24118 11 WEB_SITE="https://github.com/HsuBokai/checker_online"
pascal@24118 12 WGET_URL="$WEB_SITE/archive/$GITHASH.zip"
pascal@24118 13
pascal@24491 14 # What is the latest version available today?
pascal@24491 15 current_version()
pascal@24491 16 {
pascal@24491 17 wget -O - $WEB_SITE/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@24118 21 # Rules to configure and make the package.
pascal@24118 22 compile_rules()
pascal@24118 23 {
pascal@24118 24 grep '"http' [is]* | sed 's|.*"http|wget http|;s|".*||' | sh
pascal@24118 25 sed -i 's|http.*[0-9]/||' [is]*
pascal@24118 26 }
pascal@24118 27
pascal@24118 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@24118 29 genpkg_rules()
pascal@24118 30 {
pascal@24118 31 mkdir -p $fs/var/www $fs/usr/share/applications
pascal@24118 32 cp -a $src $fs/var/www/$PACKAGE
pascal@24118 33 cat > $fs/usr/share/applications/checker_online.desktop <<EOT
pascal@24118 34 [Desktop Entry]
pascal@24118 35 Type=Application
pascal@24118 36 Name=Chinese Checkers
pascal@24118 37 Name[fr]=Dames chinoises
pascal@24118 38 Exec=sh -c "url=file:///var/www/$PACKAGE/index.html ; tazweb --notoolbar \\\$url || browser \\\$url"
pascal@24118 39 Icon=applications-games
pascal@24118 40 Terminal=false
pascal@24118 41 Categories=Game
pascal@24118 42 EOT
pascal@24118 43 }