get-scripts annotate kiwix @ rev 63
Add nanozip
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 10 14:15:08 2016 +0200 (2016-08-10) |
parents | 35a7d83513d2 |
children | b24160a193be |
rev | line source |
---|---|
pascal@59 | 1 SHORT_DESC="You will have the whole Wikipedia at hand wherever you go!" |
pascal@62 | 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@60 | 7 WGET_URL="$(wget -O - $WEBSITE/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 |