wok view sudoku/receipt @ rev 25600

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 15:14:43 2023 +0000 (16 months ago)
parents 90a87813caa6
children
line source
1 # SliTaz package receipt.
3 PACKAGE="sudoku"
4 VERSION="2.3"
5 CATEGORY="games"
6 SHORT_DESC="Sudoku game in javascript"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="unknown"
9 TARBALL="$PACKAGE-$VERSION"
10 WEB_SITE="https://web.archive.org/web/20140124072600/http://10k.aneventapart.com/1/Entry/81"
11 WGET_URL="https://web.archive.org/web/20140124074927/http://10k.aneventapart.com/1/Uploads/81/"
12 HOST_ARCH="any"
13 GENERIC_PIXMAPS="no"
14 COOKOPTS="!pixmaps"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 mkdir -p $fs/var/www/$PACKAGE $fs/usr/share/applications
20 sed -e '/BEGIN WAYBACK TOOLBAR INSERT/,/END WAYBACK TOOLBAR INSERT/d' \
21 -e '/analytics.js/,/End Wayback Rewrite JS Include/d' \
22 -e '/<\/html>/,$d' < $src/$TARBALL > $fs/var/www/$PACKAGE/index.html
23 echo '</html>' >> $fs/var/www/$PACKAGE/index.html
24 grep -q '<head>' $fs/var/www/$PACKAGE/index.html ||
25 sed -i 's|<html>|&\n<head>|' $fs/var/www/$PACKAGE/index.html
26 chown -R 80.80 $fs/var/www/$PACKAGE
27 cat > $fs/usr/share/applications/sudoku.desktop <<EOT
28 [Desktop Entry]
29 Type=Application
30 Name=Sudoku
31 Name[zh_CN]=数独
32 Exec=sh -c "url=file:///var/www/sudoku/index.html ; tazweb --notoolbar \$url || browser \$url"
33 Icon=sudoku
34 Terminal=false
35 Categories=Game;
36 Comment=Sudoku game
37 EOT
38 }