wok view checker_online/receipt @ rev 24264
updated perl-tk (804.034 -> 804.036)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jan 02 10:23:39 2022 +0100 (2022-01-02) |
parents | |
children | d8c511e24c20 |
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 # Rules to configure and make the package.
15 compile_rules()
16 {
17 grep '"http' [is]* | sed 's|.*"http|wget http|;s|".*||' | sh
18 sed -i 's|http.*[0-9]/||' [is]*
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/var/www $fs/usr/share/applications
25 cp -a $src $fs/var/www/$PACKAGE
26 cat > $fs/usr/share/applications/checker_online.desktop <<EOT
27 [Desktop Entry]
28 Type=Application
29 Name=Chinese Checkers
30 Name[fr]=Dames chinoises
31 Exec=sh -c "url=file:///var/www/$PACKAGE/index.html ; tazweb --notoolbar \\\$url || browser \\\$url"
32 Icon=applications-games
33 Terminal=false
34 Categories=Game
35 EOT
36 }