get-scripts view FoxitReader @ rev 53

FoxitReader: depends on 'libcups', not 'cups'
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Dec 29 20:39:36 2015 +0200 (2015-12-29)
parents 6ca05e6839e1
children 2cdf3e534506
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
37 set +e