get-scripts view FoxitReader @ rev 69
palemoon: fix VERSION
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Fri Jun 16 02:55:30 2017 -0400 (2017-06-16) |
parents | 2cdf3e534506 |
children |
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
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)"