get-scripts view FoxitReader @ rev 26

Add apk-studio
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 19 13:55:21 2014 +0100 (2014-11-19)
parents
children 48c3ef68bd4f
line source
1 WEB_SITE="http://www.foxitsoftware.com/pdf/desklinux/"
2 WGET_URL=http://cdn01.foxitsoftware.com/pub/foxit/reader/desktop/linux/
3 DEPENDS="gtk+"
5 while true; do
6 TARBALL=
7 for i in $(wget -O - $WGET_URL | sed \
8 "/href/!d;s/.*href=.\([^'\"]*\).*/\1/;/^[/?]/d"); do
9 case "$i" in
10 */) TARBALL=$i ;;
11 *deb) WGET_URL="$WGET_URL$i"
12 TARBALL=$i
13 break 2 ;;
14 esac
15 done
16 [ -z "$TARBALL" ] && echo "Package not found in $WGET_URL" exit 1
17 WGET_URL="$WGET_URL$TARBALL"
18 done
20 wget $WGET_URL
21 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting."
23 mkdir $PACKAGE
24 dpkg-deb -e $TARBALL $PACKAGE/meta
25 dpkg-deb -x $TARBALL $PACKAGE/fs
26 # extracted pkg can be removed: Save RAM
27 rm -f $TARBALL
28 false && sed '/^Description:/,$!d;s/^Description://' \
29 < $PACKAGE/meta/control > $PACKAGE/description.txt
31 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
32 #MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
33 VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
34 mv $PACKAGE $PACKAGE-$VERSION
35 set +e