get-scripts view 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
line source
1 SHORT_DESC="You will have the whole Wikipedia at hand wherever you go!"
2 WEB_SITE="http://www.kiwix.org/wiki"
3 CATEGORY="office"
4 LICENSE="GPL3"
5 # end of get.list data
7 WGET_URL="$(wget -O - $WEB_SITE/Software/en | sed '/686/!d;s/.*href="\([^"]*\).*/\1/;q')"
8 TARBALL="$(basename $WGET_URL)"
10 wget -O $TARBALL $WGET_URL
11 [ -s $TARBALL ] || abort_package
13 mkdir -p $PACKAGE/fs/opt $PACKAGE/fs/usr/share/applications
15 # Extract package
16 busybox tar xf $TARBALL -C $PACKAGE/fs/opt
17 cat > $PACKAGE/fs/usr/share/applications/kiwix.desktop <<EOT
18 [Desktop Entry]
19 Type=Application
20 Name=Wikipedia Encyclopedia
21 Name[fr]=Encyclopédie Wikipedia
22 Name[pt]=Enciclopédia Wikipedia
23 Name[pt_BR]=Enciclopédia Wikipedia
24 Name[ru]=Википедия
25 Exec=tazbox su /opt/kiwix/kiwix
26 Icon=/opt/kiwix/chrome/icons/default/main.png
27 Categories=Office;Database;
28 EOT