{
 "app_id": "org.bluesabre.MenuLibre",
 "source_url": "https://raw.githubusercontent.com/flathub/org.bluesabre.MenuLibre/master/org.bluesabre.MenuLibre.yaml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--filesystem=xdg-data/applications:create",
  "--filesystem=/var/lib/flatpak:ro",
  "--filesystem=~/.gnome:create",
  "--filesystem=host:ro",
  "--filesystem=xdg-data/flatpak:ro"
 ],
 "module_count": 9,
 "fetched_at": "2026-09-17T16:14:17.024729+00:00",
 "manifest": {
  "app-id": "org.bluesabre.MenuLibre",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "menulibre-wrapper",
  "rename-icon": "menulibre",
  "rename-desktop-file": "menulibre.desktop",
  "rename-appdata-file": "menulibre.appdata.xml",
  "finish-args": [
   "--filesystem=host:ro",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--share=ipc",
   "--filesystem=xdg-data/applications:create",
   "--filesystem=xdg-data/flatpak:ro",
   "--filesystem=/var/lib/flatpak:ro",
   "--filesystem=~/.gnome:create"
  ],
  "cleanup": [
   "/include",
   "/lib/peas-demo",
   "/lib/pkgconfig",
   "/man",
   "/share/aclocal",
   "/share/gtk-doc",
   "/share/man",
   "/share/bash-completion",
   "/share/pkgconfig",
   "/share/vala",
   "*.a",
   "*.la",
   "*.pyc",
   "__pycache__"
  ],
  "modules": [
   {
    "name": "glib",
    "buildsystem": "meson",
    "config-opts": [
     "-Dtests=false",
     "-Dselinux=disabled"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/glib/2.88/glib-2.88.2.tar.xz",
      "sha256": "cf3f215a640c8a4257f14317586b8f1fdd25a10a93cb4bdda147c0f9ad88e74f"
     },
     {
      "type": "patch",
      "path": "0001-do-not-test-exec.patch"
     }
    ]
   },
   {
    "name": "python-distutils-extra",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --exists-action=i --no-index --no-build-isolation --find-links=\"file://${PWD}\" --prefix=/app \"python-distutils-extra\""
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://launchpad.net/python-distutils-extra/trunk/2.39/+download/python-distutils-extra-2.39.tar.gz",
      "sha256": "723f24f4d65fc8d99b33a002fbbb3771d4cc9d664c97085bf37f3997ae8063af"
     }
    ]
   },
   {
    "name": "intltools",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "archive",
      "url": "https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz",
      "sha256": "67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd"
     }
    ]
   },
   {
    "name": "gnome-menu",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.gnome.org/GNOME/gnome-menus.git",
      "tag": "3.36.0",
      "commit": "66ac7579856968d3f4b76c04d55327c60b37f2fb"
     },
     {
      "type": "patch",
      "path": "0001-gir-include-giounix.patch"
     }
    ]
   },
   {
    "name": "python-psutil",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --exists-action=i --no-index --no-build-isolation --find-links=\"file://${PWD}\" --prefix=/app \"psutil\""
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/e1/b0/7276de53321c12981717490516b7e612364f2cb372ee8901bd4a66a000d7/psutil-5.8.0.tar.gz",
      "sha256": "0c9ccb99ab76025f2f0bbecf341d4656e9c1351db8cc8a03ccd62e318ab4b5c6"
     }
    ]
   },
   {
    "name": "links",
    "buildsystem": "autotools",
    "build-options": {
     "cflags": "-std=gnu89"
    },
    "post-install": [
     "ln -s links \"${FLATPAK_DEST}/bin/elinks\""
    ],
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://links.twibright.com/download/links-2.29.tar.gz",
      "sha256": "c4f39438d066ffc161571f29c32b79073250fc61a389966430bbe8bc662cbae6"
     }
    ]
   },
   {
    "name": "xmlto",
    "buildsystem": "autotools",
    "build-options": {
     "cflags": "-std=gnu89"
    },
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://releases.pagure.org/xmlto/xmlto-0.0.28.tar.bz2",
      "sha256": "1130df3a7957eb9f6f0d29e4aa1c75732a7dfb6d639be013859b5c7ec5421276"
     }
    ]
   },
   {
    "name": "xdg-utils",
    "buildsystem": "autotools",
    "cleanup": [
     "/bin/xdg-email",
     "/bin/xdg-open"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://portland.freedesktop.org/download/xdg-utils-1.1.3.tar.gz",
      "sha256": "d798b08af8a8e2063ddde6c9fa3398ca81484f27dec642c5627ffcaa0d4051d9"
     }
    ]
   },
   {
    "name": "menulibre",
    "buildsystem": "simple",
    "build-commands": [
     "python3 setup.py install --prefix=/app"
    ],
    "post-install": [
     "install -D menulibre-wrapper /app/bin/menulibre-wrapper",
     "desktop-file-edit --set-key=Exec --set-value='/app/bin/menulibre-wrapper' /app/share/applications/menulibre.desktop"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "menulibre-wrapper",
      "commands": [
       "export XDG_DATA_DIRS=$XDG_DATA_DIRS:/run/host/usr/share:/var/lib/flatpak/exports/share:~/.local/share/flatpak/exports/share",
       "export GI_TYPELIB_PATH=$GI_TYPELIB_PATH:/usr/lib/$(uname -m)-linux-gnu/girepository-1.0",
       "menulibre \"$@\""
      ]
     },
     {
      "type": "git",
      "url": "https://github.com/bluesabre/menulibre.git",
      "tag": "flathub-15-0",
      "commit": "70edffedb8f93bb28188c6543aab19e515bc434e"
     }
    ]
   }
  ]
 }
}