wok-current annotate checker_online/receipt @ rev 24526
updated exempi and exempi-dev (2.5.1 -> 2.6.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 22 17:39:50 2022 +0100 (2022-02-22) |
parents | d8c511e24c20 |
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@24118 | 5 VERSION="2016" |
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@24506 | 18 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y -d |
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 } |