summaryrefslogtreecommitdiff
path: root/source/kde/kaudiocreator/kaudiocreator.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/kde/kaudiocreator/kaudiocreator.SlackBuild')
-rwxr-xr-xsource/kde/kaudiocreator/kaudiocreator.SlackBuild15
1 files changed, 8 insertions, 7 deletions
diff --git a/source/kde/kaudiocreator/kaudiocreator.SlackBuild b/source/kde/kaudiocreator/kaudiocreator.SlackBuild
index c54d53eb..2a8dfc0f 100755
--- a/source/kde/kaudiocreator/kaudiocreator.SlackBuild
+++ b/source/kde/kaudiocreator/kaudiocreator.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2009 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -53,16 +53,19 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+mkdir build
+cd build
cmake \
+ $KDE_OPT_ARGS \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMAN_INSTALL_DIR=/usr/man \
-DSYSCONF_INSTALL_DIR=/etc/kde \
- .
+ ..
make $NUMJOBS || exit 1
make install DESTDIR=$PKG || exit 1
+cd -
if [ -d $PKG/usr/man ]; then
gzip -9 $PKG/usr/man/man?/*
@@ -71,10 +74,8 @@ fi
mkdir -p $PKG/usr/doc/kaudiocreator-$VERSION
cp -a COPYING* TODO $PKG/usr/doc/kaudiocreator-$VERSION
-( 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
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc