SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "sudoku"

# SliTaz package receipt.

PACKAGE="sudoku"
VERSION="2.3"
CATEGORY="games"
SHORT_DESC="Sudoku game in javascript"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="unknown"
TARBALL="$PACKAGE-$VERSION"
WEB_SITE="https://web.archive.org/web/20140124072600/http://10k.aneventapart.com/1/Entry/81"
WGET_URL="https://web.archive.org/web/20140124074927/http://10k.aneventapart.com/1/Uploads/81/"
HOST_ARCH="any"
GENERIC_PIXMAPS="no"
COOKOPTS="!pixmaps"

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
        mkdir -p $fs/var/www/$PACKAGE $fs/usr/share/applications
    sed    -e '/BEGIN WAYBACK TOOLBAR INSERT/,/END WAYBACK TOOLBAR INSERT/d' \
        -e '/analytics.js/,/End Wayback Rewrite JS Include/d' \
        -e '/<\/html>/,$d' < $src/$TARBALL > $fs/var/www/$PACKAGE/index.html
    echo '</html>' >> $fs/var/www/$PACKAGE/index.html
    grep -q '<head>' $fs/var/www/$PACKAGE/index.html ||
    sed -i 's|<html>|&\n<head>|' $fs/var/www/$PACKAGE/index.html
    chown -R 80.80 $fs/var/www/$PACKAGE
    cat > $fs/usr/share/applications/sudoku.desktop <<EOT
[Desktop Entry]
Type=Application
Name=Sudoku
Name[zh_CN]=数独
Exec=sh -c "url=file:///var/www/sudoku/index.html ; tazweb --notoolbar \$url || browser \$url"
Icon=sudoku
Terminal=false
Categories=Game;
Comment=Sudoku game
EOT
}

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)