Files
nixpkgs/pkgs/by-name/me/megacmd/install-path.patch
Ulysses Zhan b9350f8db8 megacmd: 1.7.0 -> 2.5.2
Signed-off-by: Ulysses Zhan <UlyssesZhan@gmail.com>
2026-04-19 12:19:49 -07:00

22 lines
812 B
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -135,7 +135,6 @@ if(UNIX AND NOT APPLE)
# Note: using cmake --install --prefix /some/prefix will not set rpath relative to that prefix
# The above can be used for building packages: in which install dir is a path construction folder that will not be there in packages
set(CMAKE_INSTALL_LIBDIR "opt/megacmd/lib")
- set(CMAKE_INSTALL_BINDIR "usr/bin") #override default "bin"
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
message(STATUS "Overriding default CMAKE_INSTALL_PREFIX to /")
@@ -430,9 +429,9 @@ endif()
if (APPLE)
install(TARGETS ${all_targets}
BUNDLE
- DESTINATION "./"
+ DESTINATION "Applications/"
)
elseif(NOT WIN32)
set(PERMISSIONS755
OWNER_READ
OWNER_WRITE