summaryrefslogtreecommitdiff
path: root/multimedia/kaffeine/kaffeine.SlackBuild
diff options
context:
space:
mode:
authorMichiel van Wessem <michiel@slackbuilds.org>2010-05-11 22:24:47 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:24:47 +0200
commit4bc62b64d6bf38d3a1dbb3f61b8868f831e9a1f2 (patch)
treeee86a036e2b851a79c52d5069bea78a3c8050b0b /multimedia/kaffeine/kaffeine.SlackBuild
parent73a2caddafcb50b03041b56ac55ca42c38471bed (diff)
downloadslackbuilds-4bc62b64d6bf38d3a1dbb3f61b8868f831e9a1f2.tar.gz
multimedia/kaffeine: Updated for version 0.8.7
Diffstat (limited to 'multimedia/kaffeine/kaffeine.SlackBuild')
-rw-r--r--multimedia/kaffeine/kaffeine.SlackBuild38
1 files changed, 23 insertions, 15 deletions
diff --git a/multimedia/kaffeine/kaffeine.SlackBuild b/multimedia/kaffeine/kaffeine.SlackBuild
index 3a7c062dc6..96c7e90da4 100644
--- a/multimedia/kaffeine/kaffeine.SlackBuild
+++ b/multimedia/kaffeine/kaffeine.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for kaffeine
# Copyright 2006 Martin Lefebvre <dadexter@sekurity.com>
+# Copyright 2008 Michiel van Wessem <michiel@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,14 +23,12 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Modified by the SlackBuilds.org project
-# No additional license terms added
-
PRGNAM=kaffeine
-VERSION=0.8.4
+VERSION=0.8.7
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -39,30 +38,39 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
-KDEDIR=$(kde-config --prefix) || KDEDIR=/opt/kde
+set -e # Exit on most errors
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
rm -rf $PRGNAM-$VERSION
-tar -xjvf $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 a-s,u+w,go+r-w .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+# Patch against malformed locale files. See also:
+# http://bugs.kde.org/show_bug.cgi?id=167145a
+# Thanks to Eugene A. Bogoroditskiy
+patch -p1 < $CWD/kaffeine_locale.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- --prefix=$KDEDIR \
+ --prefix=/usr \
--sysconfdir=/etc \
- --localstatedir=/var \
- --program-suffix="" \
- --program-prefix=""
+ --localstatedir=/var
-make || exit 1
-make install-strip DESTDIR=$PKG || exit 1
+make
+make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL README TODO VERSION \