diff options
author | Michiel van Wessem <michiel@slackbuilds.org> | 2011-03-04 21:47:31 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-03-04 21:47:31 -0300 |
commit | 10e8de6e9f2306b8bce6b63495ffb5325bbae6ba (patch) | |
tree | fd58261312e8c2474c18ee20d2091286be1d1e96 /office/kchmviewer/kchmviewer.SlackBuild | |
parent | bc40de6eedf4589b11eaa2213d945afa7291e94c (diff) | |
download | slackbuilds-10e8de6e9f2306b8bce6b63495ffb5325bbae6ba.tar.gz |
office/kchmviewer: Updated for version 5.3.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'office/kchmviewer/kchmviewer.SlackBuild')
-rw-r--r-- | office/kchmviewer/kchmviewer.SlackBuild | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/office/kchmviewer/kchmviewer.SlackBuild b/office/kchmviewer/kchmviewer.SlackBuild index 246b2a9032..dbbbb347f1 100644 --- a/office/kchmviewer/kchmviewer.SlackBuild +++ b/office/kchmviewer/kchmviewer.SlackBuild @@ -24,16 +24,14 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=kchmviewer -VERSION=${VERSION:-5.2} +VERSION=${VERSION:-5.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -61,10 +59,10 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -rm -rf $TMP/build-$VERSION cd $TMP +rm -rf $PRGNAM-$VERSION tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz -cd build-$VERSION +cd $PRGNAM-$VERSION chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -72,9 +70,9 @@ 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 +# Apply a patch added patch for using the version of kio_msits.so provided +# by kdegraphics (by disabling it to build here). +patch -p0 < $CWD/kchmviewer_no_msits.patch cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ @@ -84,7 +82,7 @@ cmake \ -DMAN_INSTALL_DIR=/usr/man \ -DCMAKE_BUILD_TYPE=Release . -make +make VERBOSE=1 make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ @@ -96,6 +94,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |