3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/nitrokey-app/FixInstallDestination.patch
2016-10-22 22:28:27 +02:00

58 lines
1.4 KiB
Diff

--- 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}