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