get-scripts view 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 |
line source
1 SHORT_DESC="The Best PDF Reader"
2 WEB_SITE="http://www.foxitsoftware.com/pdf/desklinux/"
3 # end of get.list data
4 WGET_URL=http://cdn01.foxitsoftware.com/pub/foxit/reader/desktop/linux/
5 DEPENDS="gtk+ libcups"
7 while true; do
8 TARBALL=
9 for i in $(wget -O - $WGET_URL | sed \
10 "/href/!d;s/.*href=.\([^'\"]*\).*/\1/;/^[/?]/d"); do
11 case "$i" in
12 */) TARBALL=$i ;;
13 *deb) WGET_URL="$WGET_URL$i"
14 TARBALL=$i
15 break 2 ;;
16 esac
17 done
18 [ -z "$TARBALL" ] && echo "Package not found in $WGET_URL" exit 1
19 WGET_URL="$WGET_URL$TARBALL"
20 done
22 wget $WGET_URL
23 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting."
25 mkdir $PACKAGE
26 dpkg-deb -e $TARBALL $PACKAGE/meta
27 dpkg-deb -x $TARBALL $PACKAGE/fs
28 # extracted pkg can be removed: Save RAM
29 rm -f $TARBALL
30 false && sed '/^Description:/,$!d;s/^Description://' \
31 < $PACKAGE/meta/control > $PACKAGE/description.txt
33 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
34 #MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
35 VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
36 mv $PACKAGE $PACKAGE-$VERSION