summaryrefslogtreecommitdiff
path: root/graphics/gwenview/gwenview.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/gwenview/gwenview.SlackBuild')
-rw-r--r--graphics/gwenview/gwenview.SlackBuild25
1 files changed, 15 insertions, 10 deletions
diff --git a/graphics/gwenview/gwenview.SlackBuild b/graphics/gwenview/gwenview.SlackBuild
index f812c2e1ee..135fccd627 100644
--- a/graphics/gwenview/gwenview.SlackBuild
+++ b/graphics/gwenview/gwenview.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
#
# Slackware build script for gwenview
-# (C) 2007 Michael Wagner <lapinours@web.de>
+# (C) 2009 Michael Wagner <slackware.wagnerm@arcor.de>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,14 +24,15 @@
PRGNAM=gwenview
VERSION=1.4.2
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="AUTHORS COPYING* ChangeLog INSTALL NEWS README TODO"
+DOCS="AUTHORS COPYING* INSTALL NEWS README"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -39,24 +40,28 @@ elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+# Patch gwenview to compile with libexiv2.so.{4,5}
+patch -p0 < $CWD/exiv2-soname5.diff
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
- --mandir=/usr/man \
- || exit 1
+ --mandir=/usr/man
-make || exit 1
-make install-strip DESTDIR=$PKG || exit 1
+make
+make install-strip DESTDIR=$PKG
gzip -9 $PKG/usr/man/man1/* 2> /dev/null