aboutsummaryrefslogtreecommitdiff
path: root/office/kdissert/kdissert.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/kdissert/kdissert.SlackBuild')
-rw-r--r--office/kdissert/kdissert.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/office/kdissert/kdissert.SlackBuild b/office/kdissert/kdissert.SlackBuild
index fe289c94b8292..d96c5b1e880d6 100644
--- a/office/kdissert/kdissert.SlackBuild
+++ b/office/kdissert/kdissert.SlackBuild
@@ -2,7 +2,6 @@
# Slackware build script for: kdissert
# Written by: Michiel van Wessem (BP{k}) <michiel@slackbuilds.org>
-# Modified by the SlackBuilds.org project
set -e
@@ -11,7 +10,7 @@ VERSION=1.0.7
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-CWD=`pwd`
+CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -36,10 +35,12 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+KDEPREF=$(kde-config --prefix)
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./waf configure \
- --prefix=/opt/kde \
+ --prefix=$KDEPREF \
--destdir=$PKG
./waf build
@@ -53,6 +54,9 @@ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
+# Rewrite the kdissert dekstop file so kdissert is placed in Office
+sed -i '#Categories=QT;KDE;Utility;X-KDE-More#Categories=QT;KDE;Office;#' $PKG/usr/share/applications/kde/$PRGNAM.desktop
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild