wok annotate sudoku/receipt @ rev 25267

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