Subject: [PATCH] gnu: Add libjcat.

From: Léo Le Bouter <[email-masked]>
Date: Wed, 27 Jan 2021 20:15:32 +0100

* gnu/packages/compression.scm (libjcat): New variable.
---
 gnu/packages/compression.scm | 38 ++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 56350089f5..5e2d64bd43 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -55,6 +55,7 @@
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system go)
+  #:use-module (guix build-system meson)
   #:use-module (guix build-system python)
   #:use-module (guix build-system trivial)
   #:use-module (gnu packages)
@@ -70,7 +71,9 @@
   #:use-module (gnu packages gettext)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnome)
+  #:use-module (gnu packages gnupg)
   #:use-module (gnu packages gtk)
+  #:use-module (gnu packages man)
   #:use-module (gnu packages maths)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
@@ -78,6 +81,7 @@
   #:use-module (gnu packages qt)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages valgrind)
+  #:use-module (gnu packages version-control)
   #:use-module (gnu packages xml)
   #:use-module (ice-9 match)
   #:use-module ((srfi srfi-1) #:select (last)))
@@ -1025,6 +1029,40 @@ smaller than those produced by @code{Xdelta}.")
     ;; Some source files specify gpl2+, lgpl2+, however COPYING is gpl3.
     (license license:gpl3+)))
 
+(define-public libjcat
+  (package
+    (name "libjcat")
+    (version "0.1.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference
+         (url "https://github.com/hughsie/libjcat")
+         (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0rxyqikdhkh2nq1y0hy05df2kkxf3d2cp6lm5x1s5i717k6y3zy5"))))
+    (build-system meson-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("gobject-introspection" ,gobject-introspection)
+       ("help2man" ,help2man)))
+    (inputs
+     `(("glib" ,glib)
+       ("git" ,git)
+       ("json-glib" ,json-glib)
+       ("gnutls" ,gnutls)
+       ("gpgme" ,gpgme)
+       ("vala" ,vala)
+       ("gnupg" ,gnupg)))
+    (synopsis "Library for reading and writing Jcat files")
+    (description "This library allows reading and writing gzip-compressed JSON
+catalog files, which can be used to store GPG, PKCS-7 and SHA-256 checksums
+for each file.")
+    (home-page "https://github.com/hughsie/libjcat")
+    (license license:lgpl2.1+)))
+
 (define-public xdelta
   (package
     (name "xdelta")
-- 
2.30.0