get-scripts annotate kiwix @ rev 73
opera: update URL
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 27 14:58:46 2017 +0200 (2017-09-27) |
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 |