Package Details: megacmd 2.5.2-2

Git Clone URL: https://aur.archlinux.org/megacmd.git (read-only, click to copy)
Package Base: megacmd
Description: MEGA Command Line Interactive and Scriptable Application
Upstream URL: https://github.com/meganz/MEGAcmd
Keywords: cli cloud mega
Licenses: LicenseRef-megacmd
Submitter: RX14
Maintainer: ChrisLane
Last Packager: ChrisLane
Votes: 17
Popularity: 0.087735
First Submitted: 2020-07-20 00:23 (UTC)
Last Updated: 2026-04-15 12:50 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

ChrisLane commented on 2026-04-15 12:51 (UTC)

@m040601 I've added the megacmd.changes file from upstream to the package.

m040601 commented on 2026-03-24 08:11 (UTC) (edited on 2026-03-24 09:26 (UTC) by m040601)

11 hours   Patch ICU linking bug in SDK 

I can confirm it builds now on my computer. Thanks for the fix.

+ install -Dm644 contrib/docs/commands/*.md -t "${pkgdir}/usr/share/doc/${pkgname}/docs/commands

You dont need this one line. You already have this information with the "--help" flag.

mega-somecommand --help

Perhaps I wasnt crystall clear in my previous post.

unsure about the changelogs

Check it yourself on your computer,

   $ find /usr/share/doc/ -type f -iname '*news*'
   $ find /usr/share/doc/ -type f -iname '*change*'

These are not fluff or bloat meant for "developers" or "packagers". This is information meant for the end user.

It is true that nowadays many people absolutely dont care. Dont read them at all. Or if they do, they have to be online, open a megabytes browser just to read a couple of sentences on a webpage. Instead of having an offline tiny text file inside your computer.

They are essential, specially for critical tools involving backups/files/data loss/shells etc. A tiny mistake, a breaking change and you get the rug pulled under you. Or you miss interesting and new functionalities.

Please do add them. Thanks.

ChrisLane commented on 2026-03-23 23:19 (UTC)

@m040601 thanks for the suggestion.

I've added the docs to the package but am a little unsure about the changelogs to be honest. Not sure they belong here.

ChrisLane commented on 2026-03-23 22:10 (UTC)

Sorry for the build breakage! I had thought I had seen it build once already after bumping the version.

The build issue was caused by a bug in the Mega SDK non-vcpkg linking for which I have now created a patch that is applied in this package and has been submitted upstream https://github.com/meganz/sdk/pull/2768.

Wennadocta commented on 2026-03-23 19:51 (UTC)

Doesn't build anymore

[100%] Linking CXX executable mega-cmd-server
/usr/bin/ld: sdk/libSDKlib.a(utils.cpp.o): in function `mega::createCollator()':
/home/ayanami/.cache/yay/megacmd/src/megacmd-2.5.0/sdk/src/utils.cpp:3943:(.text+0x8497): undefined reference to `icu_78::Collator::createInstance(icu_78::Locale const&, UErrorCode&)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/mega-cmd-server.dir/build.make:405: mega-cmd-server] Error 1
make[1]: *** [CMakeFiles/Makefile2:862: CMakeFiles/mega-cmd-server.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

m040601 commented on 2026-03-23 19:19 (UTC) (edited on 2026-03-23 19:45 (UTC) by m040601)

Thanks for keeping up, mantaining and caring for this PKGBUILD. It is an "official" tool from mega. Somewhat underrated, and very usefull. I wish this could be an official Archlinux package. They even have, https://mega.nz/linux/repo/Arch_Extra/x86_64/, megacmd-2.5.0-3-x86_64.pkg.tar.zst, precompiled binaries for Archlinux that could be used for another alternative "megacmd-bin" PKGBUILD.

There are some extra extremely usefull files that dont get installed by default. They are not fluff or bloat but simple small plain markdown text files to really understand, master and keep up with the changes in this tool. Megacmd has no standard UNIX man pages.

Could you please make sure they also land on my Archlinux computer, "/usr/share/doc/megacmd/XYZ...", just like you do for ex for the

  # License
  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE

$ tar tf megacmd-2.5.0-1.tar.gz

First the readmes/userguide,

MEGAcmd-2.5.0_Linux/
......
......
MEGAcmd-2.5.0_Linux/README.md
MEGAcmd-2.5.0_Linux/UserGuide.md

Very thoroug and helpfull. Should land in

/usr/share/doc/megacmd/README.md
/usr/share/doc/megacmd/UserGuide.md

Second the changelogs,

.......
MEGAcmd-2.5.0_Linux/build/megacmd/
MEGAcmd-2.5.0_Linux/build/megacmd/debian.changelog
.......
MEGAcmd-2.5.0_Linux/build/megacmd/megacmd.changes
.......

These are essential to keep up with the frequent changes this powerfull and complex tool has. Should also end up in

/usr/share/doc/megacmd/megacmd.changes

Third the advanced functionalities,

MEGAcmd-2.5.0_Linux/contrib/
MEGAcmd-2.5.0_Linux/contrib/docs/
MEGAcmd-2.5.0_Linux/contrib/docs/BACKUPS.md
MEGAcmd-2.5.0_Linux/contrib/docs/DEBUG.md
MEGAcmd-2.5.0_Linux/contrib/docs/FTP.md
MEGAcmd-2.5.0_Linux/contrib/docs/FUSE.md
MEGAcmd-2.5.0_Linux/contrib/docs/WEBDAV.md

These are more like tutorials. These concern some advanced functionalities, I didnt even know megacmd have. They are not available with a simple "mega-xxx --help". They explain in detail how they work and what they are for. Should also land in,

/usr/share/doc/megacmd/XXX.md

Finaly these here are not needed as they are the markdown source for what you can read with, mega-xxx --help

MEGAcmd-2.5.0_Linux/contrib/docs/commands/
MEGAcmd-2.5.0_Linux/contrib/docs/commands/attr.md
MEGAcmd-2.5.0_Linux/contrib/docs/commands/autocomplete.md
......
loooootz of commands
......
MEGAcmd-2.5.0_Linux/contrib/docs/commands/whoami.md

Thanks in advance.

m040601 commented on 2026-03-23 18:53 (UTC) (edited on 2026-03-23 18:56 (UTC) by m040601)

https://aur.archlinux.org/cgit/aur.git/commit/?h=megacmd&id=01d2778a88b1680dec5f0d381f48ef338cd86f83

2 hours    Update to 2.5.0                                     

Can you confirm that is building and working on your computer ?

I get this error almost at the end

[ 90%] Building CXX object CMakeFiles/mega-cmd-server.dir/src/megacmd_utf8.cpp.o
[ 91%] Linking CXX executable mega-cmd-server
/dev/shm/aurydesty/megacmd/src/megacmd-2.5.0/sdk/src/megaclient.cpp: In member function ‘pw_key’:
/dev/shm/aurydesty/megacmd/src/megacmd-2.5.0/sdk/src/megaclient.cpp:10417:61: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
10417 |     SymmCipher* keys = new SymmCipher[static_cast<size_t>(n)];
      |                                                             ^
/usr/include/c++/15.2.1/new:140:26: note: in a call to allocation function ‘operator new []’ declared here
  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
      |                          ^
/usr/bin/ld: /tmp/ccLo9N75.ltrans92.ltrans.o: in function `mega::createCollator()':
/dev/shm/aurydesty/megacmd/src/megacmd-2.5.0/sdk/src/utils.cpp:3943:(.text+0x4fac): undefined reference to `icu_78::Collator::createInstance(icu_78::Locale const&, UErrorCode&)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/mega-cmd-server.dir/build.make:405: mega-cmd-server] Error 1
make[1]: *** [CMakeFiles/Makefile2:862: CMakeFiles/mega-cmd-server.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: megacmd-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
megacmd - exit status 4

ChrisLane commented on 2025-03-25 14:51 (UTC)

Thanks @lilydjwg, I've used your PKGBUILD as a basis for updating this one. I did choose to update CMakeLists.txt to link PCRE and zlib instead of overriding any LDFLAGS people may have in /etc/makepkg.conf.

@crabvk sorry for the slow update, I've been busy with other things since receiving the assistance from @lilydjwg. If either of you would like to be added to the maintainers list then please let me know.

crabvk commented on 2025-03-25 06:26 (UTC)

@ChrisLane
Hi. If you no longer wish to update the package, please disown it.