get-scripts annotate kiwix @ rev 60

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