wok-next view sudoku/receipt @ rev 20545

vmtouch: create $install/usr/bin path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 03 15:08:22 2018 +0200 (2018-04-03)
parents 10baa41a7882
children e7a485521d6a
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="http://10k.aneventapart.com/1/Entry/81"
11 WGET_URL="http://10k.aneventapart.com/1/Uploads/81/index.html"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 mkdir -p $fs/var/www/$PACKAGE $fs/usr/share/applications
17 cp $src/$TARBALL $fs/var/www/$PACKAGE/index.html
18 chown -R 80.80 $fs/var/www/$PACKAGE
19 cat > $fs/usr/share/applications/sudoku.desktop <<EOT
20 [Desktop Entry]
21 Type=Application
22 Name=Sudoku
23 Name[zh_CN]=数独
24 Exec=sh -c "url=file:///var/www/sudoku/index.html ; tazweb --notoolbar \$url || browser \$url"
25 Icon=sudoku
26 Terminal=false
27 Categories=Game;
28 Comment=Sudoku game
29 EOT
30 }