summaryrefslogtreecommitdiff
path: root/desktop/gtk-kde4/gtk-kde4.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/gtk-kde4/gtk-kde4.SlackBuild')
-rw-r--r--desktop/gtk-kde4/gtk-kde4.SlackBuild19
1 files changed, 13 insertions, 6 deletions
diff --git a/desktop/gtk-kde4/gtk-kde4.SlackBuild b/desktop/gtk-kde4/gtk-kde4.SlackBuild
index 597588258c..b0e119d17f 100644
--- a/desktop/gtk-kde4/gtk-kde4.SlackBuild
+++ b/desktop/gtk-kde4/gtk-kde4.SlackBuild
@@ -23,7 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=gtk-kde4
-VERSION=${VERSION:-0.9.3}
+SRCNAM="gtk-kde4(src)"
+VERSION=${VERSION:-0.9.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -62,8 +63,12 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xvf $CWD/*-$PRGNAM\(src\)$VERSION.tar.gz
-cd $PRGNAM
+tar xvf $CWD/$SRCNAM$VERSION.tar.gz
+
+# build fails with default dirname
+mv $SRCNAM $PRGNAM-$VERSION
+
+cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -71,6 +76,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# patch for missing quotes (submitted to author aswell)
+patch -p0 <$CWD/gtk-kde4-0.9.4_fix_bad_quotes.patch
+
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@@ -78,13 +86,12 @@ cmake \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
-DCMAKE_BUILD_TYPE=Release
-
-make VERBOSE=1
+make
# disable execution of symlinks.sh
sed -i 's/EXECUTE_PROCESS(COMMAND sh .\/symlinks.sh)/#EXECUTE_PROCESS(COMMAND sh .\/symlinks.sh)/' CMakeSymlink
-make install VERBOSE=1 DESTDIR=$PKG
+make install DESTDIR=$PKG
# fix desktop shortcut
sed -i 's/kcmshell4 gk4/kcmshell4 kcm_gk4/' kcm/kcm_gk4.desktop