get-scripts view kiwix @ rev 59

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