summaryrefslogtreecommitdiff
path: root/multimedia/kaffeine/kaffeine.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/kaffeine/kaffeine.SlackBuild')
-rw-r--r--multimedia/kaffeine/kaffeine.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/multimedia/kaffeine/kaffeine.SlackBuild b/multimedia/kaffeine/kaffeine.SlackBuild
index 2c583933a1..544db9a85b 100644
--- a/multimedia/kaffeine/kaffeine.SlackBuild
+++ b/multimedia/kaffeine/kaffeine.SlackBuild
@@ -1,7 +1,6 @@
#!/bin/sh
# Slackware build script for kaffeine
-
# Copyright 2008-2009 Michiel van Wessem, Manchester, United Kingdom.
# Copyright 2006 Martin Lefebvre <dadexter@sekurity.com>
# All rights reserved.
@@ -24,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=kaffeine
-VERSION=${VERSION:-1.0_pre2}
+VERSION=${VERSION:-1.0_pre3}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -51,10 +50,10 @@ set -e # Exit on most errors
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$SRC_VERSION
tar xvf $CWD/$PRGNAM-$SRC_VERSION.tar.gz
-cd $PRGNAM-$SRC_VERSION
+cd $PRGNAM-$SRC_VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -76,10 +75,8 @@ cd build
make install VERBOSE=1 DESTDIR=$PKG
cd -
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-)
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING* Changelog INSTALL NOTES TODO \