get-scripts annotate FoxitReader @ rev 54
Add zd1201-firmware
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 23 13:31:41 2016 +0200 (2016-04-23) |
parents | e99c968f2150 |
children | 62d94e6800db |
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@24 | 23 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting." |
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)" |
pascal@24 | 36 mv $PACKAGE $PACKAGE-$VERSION |