aboutsummaryrefslogtreecommitdiff
path: root/misc/html2ps/html2ps.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2015-03-10 23:19:55 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-03-14 16:55:59 +0700
commitb87e77efaa6dee354718185c12617a212a92f808 (patch)
treeb93ad8d74a7a67b02e066d7b7211a8bc3ea5250a /misc/html2ps/html2ps.SlackBuild
parent4135399d2b844434d6d993f350ced140619a347b (diff)
misc/html2ps: hardcode answers to the install script
If libwww-perl happens to be installed, one of the questions is skipped, which throws everything out of sync and makes the installation fail. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'misc/html2ps/html2ps.SlackBuild')
-rw-r--r--misc/html2ps/html2ps.SlackBuild22
1 files changed, 10 insertions, 12 deletions
diff --git a/misc/html2ps/html2ps.SlackBuild b/misc/html2ps/html2ps.SlackBuild
index addbac47667e4..ff185b3f539b2 100644
--- a/misc/html2ps/html2ps.SlackBuild
+++ b/misc/html2ps/html2ps.SlackBuild
@@ -64,18 +64,16 @@ mkdir -p \
$PKG/usr/share/html2ps \
$PKG/usr/doc/$PRGNAM-$VERSION
-printf "
-
-n
-${PKG}/usr/bin
-${PKG}/usr/share/html2ps
-${PKG}/usr/man/man1
-${PKG}/usr/man/man5
-
-${PKG}/usr/share/html2ps
-${PKG}/usr/doc/${PRGNAM}-${VERSION}
-${PAPER}
-" | ./install
+# get rid of 'Use of assignment to $[ is deprecated' warning
+patch -p1 < $CWD/no_deprecated_assignment.diff
+
+# hardcode the answers to all the questions it wants to ask
+patch -p1 < $CWD/noninteractive_install.diff
+
+# noninteractive_install needs these
+export PKG VERSION
+
+./install
# Install xhtml2ps stuff
mkdir -p $PKG/usr/share/applications $PKG/usr/share/pixmaps