summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Thomas <jimjoe@gmx.net>2021-10-11 05:12:41 +0530
committerLudovic Courtès <ludo@gnu.org>2021-11-14 00:18:48 +0100
commit2a05676873ccdbbbdbeb89129f23a6e1412f219f (patch)
treea47ef1a1b205de6a6143bc7ea887c7e9eaf4aa5f
parent8e5df0cea84fab4006767d2d75ad3ebaaaabfa4d (diff)
gnu: Add libomemo.
* gnu/packages/messaging.scm (libomemo): New variable Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--gnu/packages/messaging.scm35
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index d68815e916..6294b89a17 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -585,6 +585,41 @@ It implements the necessary interfaces using @code{libgcrypt} and
(home-page "https://github.com/gkdr/axc")
(license license:gpl3))) ;GPLv3-only, per license headers
+(define-public libomemo
+ (package
+ (name "libomemo")
+ (version "0.7.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/gkdr/libomemo")
+ (commit (string-append "v" version))))
+ (file-name
+ (git-file-name name version))
+ (sha256
+ (base32 "1q3vyj8zk3vm0a4v6w8qya5dhk2yw04bga8799a0zl6907nf122k"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (replace 'configure
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (setenv "CC" "gcc")
+ (setenv "PREFIX" out)))))
+ #:parallel-tests? #f))
+ (native-inputs `(("cmocka" ,cmocka)
+ ("pkg-config" ,pkg-config)))
+ (inputs `(("glib" ,glib)
+ ("libgcrypt" ,libgcrypt)
+ ("minixml" ,minixml)
+ ("sqlite" ,sqlite)))
+ (synopsis "OMEMO C library")
+ (description "This library implements @acronym{OMEMO, OMEMO Multi-End
+Message and Object Encryption} of XMPP (XEP-0384) in C.")
+ (home-page "https://github.com/gkdr/libomemo")
+ (license license:expat)))
+
(define-public bitlbee
(package
(name "bitlbee")