wok-current view checker_online/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | d8c511e24c20 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="checker_online"
4 GITHASH="191c29cfd72227d64f6a8db9d295fd71523bf0d7"
5 VERSION="2016"
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 '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y -d
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 }