Skip to content

Commit

Permalink
Build AppStream for metainfo validation
Browse files Browse the repository at this point in the history
Since the metainfo validation was switched to using `appstreamcli` in
83878b3, it's not actually being run
during the flatpak build since `appstreamcli` isn't included in the
GNOME 44 runtime.

That will change with the GNOME 45 runtime, but in the meantime build
AppStream and it's dependencies during the flatpak build. Since these
are only test dependencies, all of their files can be cleaned up. Once
the flatpak is switched to the GNOME 45 runtime, this commit should be
reverted.
  • Loading branch information
dbnicholson authored and GeorgesStavracas committed Sep 11, 2023
1 parent 009cb68 commit ca3bd4d
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
22 changes: 22 additions & 0 deletions build-aux/flatpak/modules/AppStream.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name" : "AppStream",
"buildsystem" : "meson",
"config-opts" : [
"-Dstemming=false",
"-Dsystemd=false",
"-Dgir=false",
"-Dapidocs=false",
"-Dinstall-docs=false"
],
"cleanup" : [
"*"
],
"sources" : [
{
"type": "archive",
"url": "https://freedesktop.org/software/appstream/releases/AppStream-0.16.3.tar.xz",
"sha256": "081c917646e94d7221c9e4aae54dacda95a27c607fa93cd8e6344a2b318b98b1",
"strip-components": 2
}
]
}
20 changes: 20 additions & 0 deletions build-aux/flatpak/modules/libxmlb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name" : "libxmlb",
"buildsystem" : "meson",
"config-opts" : [
"-Dgtkdoc=false",
"-Dintrospection=false",
"-Dcli=false",
"-Dzstd=false"
],
"cleanup" : [
"*"
],
"sources" : [
{
"type" : "archive",
"url" : "https://github.com/hughsie/libxmlb/releases/download/0.3.14/libxmlb-0.3.14.tar.xz",
"sha256" : "a2f0056eed14ff791aee2b08b1514a0f1b6cf215f0579138a8cae8c45a0d3b0f"
}
]
}
14 changes: 14 additions & 0 deletions build-aux/flatpak/modules/yaml.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name" : "yaml",
"buildsystem" : "autotools",
"cleanup" : [
"*"
],
"sources" : [
{
"type" : "archive",
"url" : "http://pyyaml.org/download/libyaml/yaml-0.2.5.tar.gz",
"sha256" : "c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4"
}
]
}
3 changes: 3 additions & 0 deletions build-aux/flatpak/org.endlessos.Key.Devel.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
},
"modules" : [
"modules/iproute2.json",
"modules/libxmlb.json",
"modules/yaml.json",
"modules/AppStream.json",
"modules/python3-markdown.json",
"modules/python3-kolibri.json",
"modules/python3-kolibri-pytz.json",
Expand Down

0 comments on commit ca3bd4d

Please sign in to comment.