Files
termux-packages/packages/megacmd/no-android.patch
termux-pacman-bot d131f94512 bump(main/megacmd): 2.3.0
- Fixes https://github.com/termux/termux-packages/issues/24003

- Continuation of https://github.com/termux/termux-packages/pull/24320

- Tested working to run `mega-cmd` followed by `mega-cmd`'s `ls` and `cat` subcommands on a device that is logged into a MEGA account
2025-11-12 17:39:43 +00:00

19 lines
1014 B
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,6 +25,7 @@
## Modules location
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/build/cmake/modules) # Modules from MEGAcmd
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/sdk/cmake/modules) # Modules from MEGAsdk
+list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/sdk/cmake/modules/packages)
set(VCPKG_ROOT "${CMAKE_CURRENT_LIST_DIR}/../vcpkg" CACHE PATH "If set, it will build and use the VCPKG packages defined in the manifest file")
@@ -136,7 +136,6 @@
# 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 /")