SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "checker_online"

# SliTaz package receipt.

PACKAGE="checker_online"
GITHASH="191c29cfd72227d64f6a8db9d295fd71523bf0d7"
VERSION="2016"
CATEGORY="games"
SHORT_DESC="online chinese checker AI"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="unknown"
TARBALL="$PACKAGE-$VERSION.zip"
WEB_SITE="https://github.com/HsuBokai/checker_online"
WGET_URL="$WEB_SITE/archive/$GITHASH.zip"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE/commits/master 2>/dev/null | \
    sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y -d
}

# Rules to configure and make the package.
compile_rules()
{
    grep '"http' [is]* | sed 's|.*"http|wget http|;s|".*||' | sh
    sed -i 's|http.*[0-9]/||' [is]*
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/var/www $fs/usr/share/applications
    cp -a $src $fs/var/www/$PACKAGE
    cat > $fs/usr/share/applications/checker_online.desktop <<EOT
[Desktop Entry]
Type=Application
Name=Chinese Checkers
Name[fr]=Dames chinoises
Exec=sh -c "url=file:///var/www/$PACKAGE/index.html ; tazweb --notoolbar \\\$url || browser \\\$url"
Icon=applications-games
Terminal=false
Categories=Game
EOT
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)