diff options
Diffstat (limited to 'office/kchmviewer/kchmviewer.SlackBuild')
-rw-r--r-- | office/kchmviewer/kchmviewer.SlackBuild | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/office/kchmviewer/kchmviewer.SlackBuild b/office/kchmviewer/kchmviewer.SlackBuild index 2a15d116b3fc..246b2a903295 100644 --- a/office/kchmviewer/kchmviewer.SlackBuild +++ b/office/kchmviewer/kchmviewer.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # # SlackBuild script for KchmViewer. -# Copyright 2007-2009 Michiel van Wessem, Manchester, United Kingdom +# Copyright 2007-2010 Michiel van Wessem, Manchester, United Kingdom # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -24,7 +24,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=kchmviewer -VERSION=${VERSION:-5.1} +VERSION=${VERSION:-5.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -61,7 +61,7 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -rm -rf $TMP/$PRGNAM-$VERSION +rm -rf $TMP/build-$VERSION cd $TMP tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz cd build-$VERSION @@ -72,6 +72,10 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Patch to build kchmviewer properly. Thanks to +# http://bugs.gentoo.org/320191. +patch -p1 < $CWD/kchmviewer-5.2-kde-build.patch + cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ |