about summary refs log tree commit diff
path: root/pkgs/desktops/kde-4/runtime/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/desktops/kde-4/runtime/builder.sh')
-rwxr-xr-xpkgs/desktops/kde-4/runtime/builder.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/desktops/kde-4/runtime/builder.sh b/pkgs/desktops/kde-4/runtime/builder.sh
new file mode 100755
index 000000000000..99b357fcf167
--- /dev/null
+++ b/pkgs/desktops/kde-4/runtime/builder.sh
@@ -0,0 +1,12 @@
+source ${stdenv}/setup
+
+myPatchPhase()
+{
+	echo "Fixing dbus calls in CMakeLists.txt files"
+# Trailing slash in sed is essential
+	find .. -name CMakeLists.txt \
+	| xargs sed -e "s@\${DBUS_INTERFACES_INSTALL_DIR}/@${kdelibs}/share/dbus-1/interfaces/@" -i
+	#sed -e '/^#define HAS_RANDR_1_2 1$/d' -i ../workspace/kcontrol/randr/randr.h
+}
+patchPhase=myPatchPhase
+genericBuild