Subject: [bug#41293] [PATCH 2/3] gnu: Add appstream.

From: Marius Bakke <[email-masked]>
Date: Mon, 22 Jun 2020 21:23:06 +0200

Ryan Prior via Guix-patches via <[email-masked]> writes:

> * gnu/packages/freedesktop.scm (appstream): New variable.

[...]

> +    (inputs
> +     `(("glib" ,glib)
> +       ("gperf" ,gperf)
> +       ("libsoup" ,libsoup)
> +       ("libxml2" ,libxml2)
> +       ("libxslt" ,libxslt)
> +       ("libyaml" ,libyaml)
> +       ("lmdb" ,lmdb)))
> +    (native-inputs
> +     `(("cmake" ,cmake)

'cmake-minimal' here too.

> +       ("gettext" ,gettext-minimal)
> +       ("glib:bin" ,glib "bin") ; for glib-compile-resources
> +       ("gobject-introspection" ,gobject-introspection)
> +       ("pkg-config" ,pkg-config)
> +       ("vala" ,vala)))
> +    (home-page "https://www.freedesktop.org/wiki/Distributions/AppStream/")
> +    (synopsis "Provides the foundation to build software-center applications")

I think the GitHub tagline is better: "Tools and libraries to work with
AppStream metadata".

> +    (description "AppStream is a cross-distribution effort for enhancing the way
> +we interact with the software repositories provided by GNU/Linux distributions
> +by standardizing software component metadata.")

Who is 'we' in this context?  Maybe we can use the README description:

"AppStream is a collaborative effort for making machine-readable
software metadata available to programs that need it."

Do you know if Guix is supported?  :-)

> +    (license license:gpl2)))

The library portions of this package seems to be 'lgpl2.1+', and the
tools are 'gpl2' (only).  Can you add a comment about it and list both
licenses?