summaryrefslogtreecommitdiff
path: root/pkgs/tools/security/nitrokey-app/FixInstallDestination.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/security/nitrokey-app/FixInstallDestination.patch')
-rw-r--r--pkgs/tools/security/nitrokey-app/FixInstallDestination.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/tools/security/nitrokey-app/FixInstallDestination.patch b/pkgs/tools/security/nitrokey-app/FixInstallDestination.patch
new file mode 100644
index 000000000000..74e466069d93
--- /dev/null
+++ b/pkgs/tools/security/nitrokey-app/FixInstallDestination.patch
@@ -0,0 +1,57 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -251,23 +251,23 @@
+ # ${CMAKE_SOURCE_DIR}/data/icons/48x48
+ # ${CMAKE_SOURCE_DIR}/data/icons/128x128
+ ${CMAKE_SOURCE_DIR}/data/icons/
+- DESTINATION usr/share/icons/
++ DESTINATION share/icons/
+ )
+
+ install(FILES
+ ${CMAKE_SOURCE_DIR}/data/nitrokey-app.desktop
+- DESTINATION usr/share/applications
++ DESTINATION share/applications
+ )
+
+ install(FILES
+ ${CMAKE_SOURCE_DIR}/data/icons/hicolor/128x128/apps/nitrokey-app.png
+- DESTINATION usr/share/pixmaps
++ DESTINATION share/pixmaps
+ )
+
+ # Install Nitrokey udev rules
+ install(FILES
+ ${CMAKE_SOURCE_DIR}/data/40-nitrokey.rules
+- DESTINATION usr/lib/udev/rules.d
++ DESTINATION lib/udev/rules.d
+ )
+
+ # Install autocompletion scripts
+@@ -278,7 +278,7 @@
+
+ install(FILES
+ ${CMAKE_SOURCE_DIR}/po/de_DE/nitrokey-app.mo
+- DESTINATION usr/share/locale/de_DE/LC_MESSAGES
++ DESTINATION share/locale/de_DE/LC_MESSAGES
+ )
+
+ install(FILES
+@@ -286,7 +286,7 @@
+ ${CMAKE_SOURCE_DIR}/images/quit.png
+ ${CMAKE_SOURCE_DIR}/images/safe_zahlenkreis.png
+ ${CMAKE_SOURCE_DIR}/images/settings.png
+- DESTINATION usr/share/nitrokey
++ DESTINATION share/nitrokey
+ )
+
+ ENDIF () # NOT WIN32
+@@ -299,7 +299,7 @@
+ ${resources_ouput}
+ )
+
+-INSTALL(TARGETS nitrokey-app DESTINATION usr/bin)
++INSTALL(TARGETS nitrokey-app DESTINATION bin)
+
+ TARGET_LINK_LIBRARIES(nitrokey-app
+ ${QT_LIBRARIES}