wok-current view 2048/receipt @ rev 24345
azpainter: added build dependency tiff-dev
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 02 09:55:35 2022 +0100 (2022-02-02) |
parents | |
children | 34e801e0eb52 |
line source
1 # SliTaz package receipt.
3 PACKAGE="2048"
4 VERSION="1.0"
5 GITTAG="4b5f17e666c9effaabdca9c12ee017fae08360bd"
6 CATEGORY="games"
7 SHORT_DESC="A 2048 game clone with undo support"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://github.com/alokmenghrajani/2048"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="$WEB_SITE/archive/$GITTAG.zip"
13 HOST_ARCH="any"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/var/www/2048 $fs/usr/share/applications
19 cp -a $src/[a-z]* $fs/var/www/2048
20 sed -i '/<script>/,/<\/script>/d' $fs/var/www/2048/index.html
21 chown -R 80.80 $fs/var/www/2048
22 cat > $fs/usr/share/applications/2048.desktop <<EOT
23 [Desktop Entry]
24 Type=Application
25 Name=2048
26 Exec=sh -c "url=file:///var/www/2048/index.html; tazweb --notoolbar \$url || browser \$url"
27 Terminal=false
28 Categories=Game;
29 Icon=applications-games
30 EOT
31 }