{
 "app_id": "it.mijorus.gearlever",
 "source_url": "https://raw.githubusercontent.com/flathub/it.mijorus.gearlever/master/it.mijorus.gearlever.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=/tmp",
  "--filesystem=host",
  "--talk-name=org.freedesktop.Flatpak"
 ],
 "module_count": 7,
 "fetched_at": "2026-09-17T16:13:06.631019+00:00",
 "manifest": {
  "app-id": "it.mijorus.gearlever",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "gearlever",
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--filesystem=host:rw",
   "--filesystem=/tmp",
   "--talk-name=org.freedesktop.Flatpak"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/man",
   "/share/doc",
   "/share/gtk-doc",
   "/share/man",
   "/share/pkgconfig",
   "*.la",
   "*.a"
  ],
  "modules": [
   "./python3-requirements.json",
   {
    "name": "get_appimage_offset",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm 755 get_appimage_offset.sh /app/bin/get_appimage_offset"
    ],
    "sources": [
     {
      "type": "file",
      "path": "./build-aux/get_appimage_offset.sh"
     }
    ]
   },
   {
    "name": "unsquashfs",
    "buildsystem": "simple",
    "build-commands": [
     "XZ_SUPPORT=1 ZSTD_SUPPORT=1 LZ4_SUPPORT=1 make -C squashfs-tools -j ${FLATPAK_BUILDER_N_JOBS} unsquashfs",
     "install -Dm755 squashfs-tools/unsquashfs -t ${FLATPAK_DEST}/bin/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/plougher/squashfs-tools.git",
      "commit": "708c59ae80853b0845017c33b42e56061cc546cd"
     }
    ]
   },
   {
    "name": "7zip",
    "buildsystem": "simple",
    "build-commands": [
     "tar -xf 7z/7z.tar.xz -C 7z",
     "install -Dm755 7z/7zz -t ${FLATPAK_DEST}/bin/"
    ],
    "cleanup": [
     "7z"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/ip7z/7zip/releases/download/26.00/7z2600-linux-x64.tar.xz",
      "sha256": "c74dc4a48492cde43f5fec10d53fb2a66f520e4a62a69d630c44cb22c477edc6",
      "dest": "7z",
      "dest-filename": "7z.tar.xz",
      "only-arches": [
       "x86_64"
      ]
     },
     {
      "type": "file",
      "url": "https://github.com/ip7z/7zip/releases/download/26.00/7z2600-linux-arm64.tar.xz",
      "sha256": "aa8f3d0a19af9674d3af0ec788b4e261501071e626cd75ad149f1c2c176cc87d",
      "dest": "7z",
      "dest-filename": "7z.tar.xz",
      "only-arches": [
       "aarch64"
      ]
     }
    ]
   },
   {
    "name": "dwarfs",
    "buildsystem": "simple",
    "cleanup": [
     "dwarfs"
    ],
    "build-commands": [
     "install -Dm755 dwarfs/bin/dwarfsextract -t ${FLATPAK_DEST}/bin/",
     "install -Dm755 dwarfs/bin/dwarfsck -t ${FLATPAK_DEST}/bin/"
    ],
    "sources": [
     {
      "type": "archive",
      "sha256": "2dba61946786ec563c96783f719316199eeb55a4cbde1436e1b5796f28494fa8",
      "url": "https://github.com/mhx/dwarfs/releases/download/v0.15.3/dwarfs-0.15.3-Linux-x86_64.tar.xz",
      "dest": "dwarfs",
      "only-arches": [
       "x86_64"
      ]
     },
     {
      "type": "archive",
      "sha256": "70edc89104233aa8afe7548c4b83c97625baf44c34f625fa99deff4b4b01f89f",
      "url": "https://github.com/mhx/dwarfs/releases/download/v0.15.3/dwarfs-0.15.3-Linux-aarch64.tar.xz",
      "dest": "dwarfs",
      "only-arches": [
       "aarch64"
      ]
     }
    ]
   },
   {
    "name": "readelf-strings-binutils",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm755 /usr/bin/readelf -t ${FLATPAK_DEST}/bin/",
     "install -Dm755 /usr/bin/strings -t ${FLATPAK_DEST}/bin/",
     "install -Dm755 /usr/bin/file -t ${FLATPAK_DEST}/bin/",
     "install -Dm755 /usr/lib/$(gcc -print-multiarch)/libctf*.so.* -t ${FLATPAK_DEST}/lib/",
     "install -Dm755 /usr/lib/$(gcc -print-multiarch)/libbfd*.so -t ${FLATPAK_DEST}/lib/",
     "install -Dm755 /usr/lib/$(gcc -print-multiarch)/libsframe*.so.* -t ${FLATPAK_DEST}/lib/"
    ]
   },
   {
    "name": "gearlever",
    "builddir": true,
    "buildsystem": "meson",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/mijorus/gearlever.git",
      "commit": "a2917f2adafc78e0478e47d5843de9ede6c1aa3f"
     }
    ]
   }
  ]
 }
}