* gnu/packages/sync.scm (mega-sdk): Add MEGA SDK --- gnu/packages/sync.scm | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/gnu/packages/sync.scm b/gnu/packages/sync.scm index ce815ed5c7..064e68c431 100644 --- a/gnu/packages/sync.scm +++ b/gnu/packages/sync.scm @@ -213,6 +213,46 @@ (define-public nextcloud-client license:lgpl2.1+ ; qtokenizer license:gpl2+)))) +(define-public mega-sdk + (package + (name "mega-sdk") + (version "3.9.10") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/meganz/sdk/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 (base32 + "08qw23rm4rrvlsbcixrncbi5x0qgqkpx74l5f1gq2rgll0ksx8ph")) + (modules '((guix build utils))))) + (build-system gnu-build-system) + (native-inputs `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool))) + (inputs `(("c-ares" ,c-ares) + ("crypto++" ,crypto++) + ("curl" ,curl) + ("freeimage" ,freeimage) + ("libsodium" ,libsodium) + ("openssl" ,openssl) + ("readline" ,readline) + ("sqlite" ,sqlite) + ("zlib" ,zlib))) + ;; XXX: Disabling tests because they depend on libgtest.la from googletest, + ;; which is not installed for unclear reasons. + (arguments `(#:tests? #f)) + (home-page "https://mega.nz/sdk") + (synopsis "SDK for the MEGA service, offered by MEGA Limited") + (description "A low-level SDK for the MEGA service which powers the +file-sharing site. This package provides two executables: +@itemize +@item megacli: a command-line tool that allows usage of all SDK features +@item megasimplesync: a command line tool that allows usage of the +synchronization engine +@end itemize") + (license license:bsd-2))) + (define-public megacmd (package (name "megacmd") @@ -222,8 +262,7 @@ (define-public megacmd (method git-fetch) (uri (git-reference (url "https://github.com/meganz/MEGAcmd") - (commit (string-append version "_Linux")) - (recursive? #t))) + (commit (string-append version "_Linux")))) (sha256 (base32 "004j8m3xs6slx03g2g6wzr97myl2v3zc09wxnfar5c62a625pd53")) @@ -242,6 +281,7 @@ (define-public megacmd ("curl" ,curl) ("freeimage" ,freeimage) ("gtest" ,googletest) + ("mega-sdk" ,mega-sdk) ("openssl" ,openssl) ("pcre" ,pcre) ("readline" ,readline)