summaryrefslogtreecommitdiff
path: root/misc/html2ps/html2ps.SlackBuild
diff options
context:
space:
mode:
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 addbac4766..ff185b3f53 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