wok view checker_online/receipt @ rev 25778

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