File cmake-install.patch of Package trenchbroom

diff -Nura trenchbroom.old/app/CMakeLists.txt trenchbroom.new/app/CMakeLists.txt
--- trenchbroom.old/app/CMakeLists.txt	2022-10-16 20:30:05.923080157 +0300
+++ trenchbroom.new/app/CMakeLists.txt	2022-10-17 21:44:50.424400736 +0300
@@ -359,10 +359,6 @@
     install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/images"          DESTINATION ${LINUX_RESOURCE_LOCATION} COMPONENT TrenchBroom)
     install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/shader"          DESTINATION ${LINUX_RESOURCE_LOCATION} COMPONENT TrenchBroom)
     install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/stylesheets"     DESTINATION ${LINUX_RESOURCE_LOCATION} COMPONENT TrenchBroom)
-    install(DIRECTORY "${APP_DIR}/resources/linux/icons"            DESTINATION ${LINUX_RESOURCE_LOCATION} COMPONENT TrenchBroom FILES_MATCHING PATTERN "*.png")
-    install(FILES "${CMAKE_SOURCE_DIR}/LICENSE.txt"                 DESTINATION ${LINUX_RESOURCE_LOCATION} COMPONENT TrenchBroom)
-    install(FILES "${APP_DIR}/resources/linux/copyright"            DESTINATION ${LINUX_RESOURCE_LOCATION} COMPONENT TrenchBroom)
-    install(FILES "${APP_DIR}/resources/linux/trenchbroom.desktop"  DESTINATION ${LINUX_RESOURCE_LOCATION} COMPONENT TrenchBroom)
 
     # deb package specifics
     set(CPACK_DEBIAN_PACKAGE_MAINTAINER ${CPACK_PACKAGE_VENDOR})
diff -Nura trenchbroom.old/app/resources/linux/postinst trenchbroom.new/app/resources/linux/postinst
--- trenchbroom.old/app/resources/linux/postinst	2022-10-16 20:29:15.699746094 +0300
+++ trenchbroom.new/app/resources/linux/postinst	2022-10-17 21:49:00.241071033 +0300
@@ -1,31 +1 @@
 #!/bin/sh
-set -e
-
-# Add icons to the system icons
-XDG_ICON_RESOURCE="`which xdg-icon-resource 2> /dev/null || true`"
-if [ ! -x "$XDG_ICON_RESOURCE" ]; then
-  echo "Error: Could not find xdg-icon-resource" >&2
-  exit 1
-fi
-for icon in "@LINUX_TARGET_RESOURCE_DIRECTORY@/icons/icon_"*.png; do
-  size="${icon##*/icon_}"
-  "$XDG_ICON_RESOURCE" install --novendor --size "${size%.png}" "$icon" "trenchbroom"
-done
-
-# Add desktop entry
-XDG_DESKTOP_MENU="`which xdg-desktop-menu 2> /dev/null || true`"
-if [ ! -x "$XDG_DESKTOP_MENU" ]; then
-  echo "Error: Could not find xdg-desktop-menu" >&2
-  exit 1
-fi
-"$XDG_DESKTOP_MENU" install --novendor "@LINUX_TARGET_RESOURCE_DIRECTORY@/trenchbroom.desktop"
-
-
-# Update menu cache
-UPDATE_MENUS="`which update-menus 2> /dev/null || true`"
-if [ -x "$UPDATE_MENUS" ]; then
-  update-menus
-fi
-
-# Update desktop file cache
-update-desktop-database > /dev/null 2>&1 || true
diff -Nura trenchbroom.old/app/resources/linux/prerm trenchbroom.new/app/resources/linux/prerm
--- trenchbroom.old/app/resources/linux/prerm	2022-10-16 20:29:15.699746094 +0300
+++ trenchbroom.new/app/resources/linux/prerm	2022-10-17 21:48:54.274404280 +0300
@@ -1,30 +1 @@
 #!/bin/sh
-set -e
-
-# Remove icons from the system icons
-XDG_ICON_RESOURCE="`which xdg-icon-resource 2> /dev/null || true`"
-if [ ! -x "$XDG_ICON_RESOURCE" ]; then
-  echo "Error: Could not find xdg-icon-resource" >&2
-  exit 1
-fi
-for icon in "@LINUX_TARGET_RESOURCE_DIRECTORY@/icons/icon_"*.png; do
-  size="${icon##*/icon_}"
-  "$XDG_ICON_RESOURCE" uninstall --size "${size%.png}" "trenchbroom"
-done
-
-# Remove desktop entry
-XDG_DESKTOP_MENU="`which xdg-desktop-menu 2> /dev/null || true`"
-if [ ! -x "$XDG_DESKTOP_MENU"  ]; then
-    echo "Error: Could not find xdg-desktop-menu" >&2
-    exit 1
-fi
-"$XDG_DESKTOP_MENU" uninstall "@LINUX_TARGET_RESOURCE_DIRECTORY@/trenchbroom.desktop"
-
-# Update menu cache
-UPDATE_MENUS="`which update-menus 2> /dev/null || true`"
-if [ -x "$UPDATE_MENUS" ]; then
-  update-menus
-fi
-
-# Update desktop file cache
-update-desktop-database > /dev/null 2>&1 || true
openSUSE Build Service is sponsored by