From 2a05676873ccdbbbdbeb89129f23a6e1412f219f Mon Sep 17 00:00:00 2001 From: James Thomas Date: Mon, 11 Oct 2021 05:12:41 +0530 Subject: gnu: Add libomemo. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/messaging.scm (libomemo): New variable Signed-off-by: Ludovic Courtès --- gnu/packages/messaging.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'gnu') 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 @@ (define-public axc (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") -- cgit v1.2.3