get-scripts annotate kiwix @ rev 80

libreoffice: fix menu entries (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 09 11:40:00 2019 +0200 (2019-06-09)
parents b24160a193be
children
rev   line source
pascal@59 1 SHORT_DESC="You will have the whole Wikipedia at hand wherever you go!"
pascal@68 2 WEB_SITE="http://www.kiwix.org/wiki"
pascal@62 3 CATEGORY="office"
pascal@62 4 LICENSE="GPL3"
pascal@59 5 # end of get.list data
pascal@59 6
pascal@68 7 WGET_URL="$(wget -O - $WEB_SITE/Software/en | sed '/686/!d;s/.*href="\([^"]*\).*/\1/;q')"
pascal@59 8 TARBALL="$(basename $WGET_URL)"
pascal@59 9
pascal@59 10 wget -O $TARBALL $WGET_URL
pascal@59 11 [ -s $TARBALL ] || abort_package
pascal@59 12
pascal@63 13 mkdir -p $PACKAGE/fs/opt $PACKAGE/fs/usr/share/applications
pascal@59 14
pascal@59 15 # Extract package
pascal@63 16 busybox tar xf $TARBALL -C $PACKAGE/fs/opt
pascal@63 17 cat > $PACKAGE/fs/usr/share/applications/kiwix.desktop <<EOT
pascal@59 18 [Desktop Entry]
pascal@59 19 Type=Application
pascal@59 20 Name=Wikipedia Encyclopedia
pascal@59 21 Name[fr]=Encyclopédie Wikipedia
pascal@59 22 Name[pt]=Enciclopédia Wikipedia
pascal@59 23 Name[pt_BR]=Enciclopédia Wikipedia
pascal@59 24 Name[ru]=Википедия
pascal@59 25 Exec=tazbox su /opt/kiwix/kiwix
pascal@59 26 Icon=/opt/kiwix/chrome/icons/default/main.png
pascal@59 27 Categories=Office;Database;
pascal@59 28 EOT