{
 "app_id": "org.freedesktop.appstream-glib",
 "source_url": "https://raw.githubusercontent.com/flathub/org.freedesktop.appstream-glib/master/org.freedesktop.appstream-glib.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "22.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--filesystem=/var/lib/flatpak:ro",
  "--filesystem=~/.local/share/flatpak:ro",
  "--filesystem=host"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:14:36.486882+00:00",
 "manifest": {
  "app-id": "org.freedesktop.appstream-glib",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "22.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "appstream-util",
  "separate-locales": false,
  "finish-args": [
   "--filesystem=host",
   "--filesystem=~/.local/share/flatpak:ro",
   "--filesystem=/var/lib/flatpak:ro",
   "--share=network"
  ],
  "cleanup": [
   "*.la",
   "*.a",
   "/include",
   "/lib/pkgconfig"
  ],
  "modules": [
   {
    "name": "libyaml",
    "sources": [
     {
      "type": "archive",
      "url": "http://pyyaml.org/download/libyaml/yaml-0.2.5.tar.gz",
      "sha256": "c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4"
     }
    ]
   },
   {
    "name": "stemmer",
    "buildsystem": "simple",
    "build-commands": [
     "make libstemmer.so -j$FLATPAK_BUILDER_N_JOBS",
     "install -Dm644 include/libstemmer.h /app/include/libstemmer.h",
     "install -Dm644 libstemmer.so.0.0.0 /app/lib/libstemmer.so.0.0.0",
     "ln -s libstemmer.so.0.0.0 /app/lib/libstemmer.so.0",
     "ln -s libstemmer.so.0 /app/lib/libstemmer.so"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/snowballstem/snowball",
      "commit": "d29510ae32702a81cdc29177a133e894df854550"
     },
     {
      "type": "patch",
      "path": "stemmer-dynlib.patch"
     }
    ]
   },
   {
    "name": "popt",
    "sources": [
     {
      "type": "archive",
      "url": "http://ftp.rpm.org/popt/releases/popt-1.x/popt-1.18.tar.gz",
      "sha256": "5159bc03a20b28ce363aa96765f37df99ea4d8850b1ece17d1e6ad5c24fdc5d1"
     }
    ]
   },
   {
    "name": "rpm",
    "config-opts": [
     "--disable-bdb",
     "--without-lua"
    ],
    "cleanup": [
     "/bin/rpm*",
     "/lib/rpm",
     "/lib/librpm.so*",
     "/lib/librpmbuild.so*",
     "/lib/librpmsign.so*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://ftp.rpm.org/releases/rpm-4.16.x/rpm-4.16.1.3.tar.bz2",
      "sha256": "513dc7f972b6e7ccfc9fc7f9c01d5310cc56ee853892e4314fa2cad71478e21d"
     }
    ]
   },
   {
    "name": "appstream-glib",
    "buildsystem": "meson",
    "config-opts": [
     "-Dgtk-doc=false",
     "-Drpm=true"
    ],
    "post-install": [
     "install -Dm644 ../org.freedesktop.appstream-glib.metainfo.xml -t $FLATPAK_DEST/share/metainfo"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/hughsie/appstream-glib",
      "tag": "appstream_glib_0_8_1",
      "commit": "28c985bec286385504c5303a8f29eab4082f5afd"
     },
     {
      "type": "patch",
      "paths": [
       "patches/appstream-glib-0001-Do-not-require-paragraph-length-unless-strict.patch",
       "patches/appstream-glib-0002-Move-padding-and-size-checks-to-validate-strict.patch",
       "patches/appstream-glib-0003-Allow-release-descriptions-without-paragraphs.patch",
       "patches/appstream-glib-0004-Relax-validation-requirements-for-captions.patch",
       "patches/appstream-glib-0005-Change-min.-paragraph-length-to-5-and-max.-number-of.patch",
       "patches/appstream-glib-0006-Allow-hyperlinks-in-list-elements-and-paragraphs.patch",
       "patches/appstream-glib-curl-redirect.patch",
       "patches/appstream-glib-curl-validate-redirect.patch"
      ]
     },
     {
      "type": "file",
      "path": "org.freedesktop.appstream-glib.metainfo.xml"
     }
    ]
   }
  ]
 }
}