get-scripts annotate FoxitReader @ rev 63

Add nanozip
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 10 14:15:08 2016 +0200 (2016-08-10)
parents 2cdf3e534506
children
rev   line source
pascal@34 1 SHORT_DESC="The Best PDF Reader"
pascal@24 2 WEB_SITE="http://www.foxitsoftware.com/pdf/desklinux/"
pascal@34 3 # end of get.list data
pascal@24 4 WGET_URL=http://cdn01.foxitsoftware.com/pub/foxit/reader/desktop/linux/
al@53 5 DEPENDS="gtk+ libcups"
pascal@24 6
pascal@24 7 while true; do
pascal@24 8 TARBALL=
pascal@24 9 for i in $(wget -O - $WGET_URL | sed \
pascal@24 10 "/href/!d;s/.*href=.\([^'\"]*\).*/\1/;/^[/?]/d"); do
pascal@24 11 case "$i" in
pascal@24 12 */) TARBALL=$i ;;
pascal@24 13 *deb) WGET_URL="$WGET_URL$i"
pascal@24 14 TARBALL=$i
pascal@24 15 break 2 ;;
pascal@24 16 esac
pascal@24 17 done
pascal@24 18 [ -z "$TARBALL" ] && echo "Package not found in $WGET_URL" exit 1
pascal@24 19 WGET_URL="$WGET_URL$TARBALL"
pascal@24 20 done
pascal@24 21
pascal@24 22 wget $WGET_URL
pascal@63 23 [ -f $TARBALL ] || abort_package
pascal@24 24
pascal@24 25 mkdir $PACKAGE
pascal@24 26 dpkg-deb -e $TARBALL $PACKAGE/meta
pascal@24 27 dpkg-deb -x $TARBALL $PACKAGE/fs
pascal@24 28 # extracted pkg can be removed: Save RAM
pascal@24 29 rm -f $TARBALL
pascal@24 30 false && sed '/^Description:/,$!d;s/^Description://' \
pascal@24 31 < $PACKAGE/meta/control > $PACKAGE/description.txt
pascal@24 32
pascal@24 33 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@24 34 #MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@24 35 VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"