{
 "app_id": "org.getmonero.Monero",
 "source_url": "https://raw.githubusercontent.com/flathub/org.getmonero.Monero/master/org.getmonero.Monero.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-25.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 10,
 "fetched_at": "2026-09-18T12:17:18.821783+00:00",
 "manifest": {
  "app-id": "org.getmonero.Monero",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-25.08",
  "sdk": "org.kde.Sdk",
  "finish-args": [
   "--share=network",
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=all",
   "--persist=Monero",
   "--persist=.bitmonero",
   "--persist=.p2pool",
   "--env=QT_QPA_PLATFORM=wayland;xcb"
  ],
  "cleanup": [
   "/include",
   "/etc",
   "/share/man",
   "/lib/pkgconfig",
   "/lib/cmake",
   "*.a",
   "*.la"
  ],
  "command": "monero-wallet-gui",
  "modules": [
   {
    "name": "monero-gui",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DWITH_DESKTOP_ENTRY=OFF",
     "-DWITH_UPDATER=OFF"
    ],
    "build-options": {
     "arch": {
      "aarch64": {
       "config-opts": [
        "-DARCH=armv8-a",
        "-DBUILD_TAG=linux-armv8"
       ]
      },
      "x86_64": {
       "config-opts": [
        "-DARCH=default"
       ]
      }
     }
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.getmonero.org/gui/monero-gui-source-v0.18.5.2.tar.bz2",
      "sha256": "c4fcdb606ae79f6f9f9f718f15ccc5cc411c8be5759a5172dc2736e1bfc3b8f8",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/monero-project/monero-gui/releases/latest",
       "version-query": ".tag_name",
       "url-query": "\"https://downloads.getmonero.org/gui/monero-gui-source-\" + $version + \".tar.bz2\""
      }
     },
     {
      "type": "file",
      "path": "extra/org.getmonero.Monero.desktop"
     },
     {
      "type": "file",
      "path": "extra/org.getmonero.Monero.metainfo.xml"
     }
    ],
    "post-install": [
     "install -Dpm644 org.getmonero.Monero.desktop $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop",
     "install -Dpm644 org.getmonero.Monero.metainfo.xml $FLATPAK_DEST/share/metainfo/$FLATPAK_ID.metainfo.xml",
     "for x in 16 24 32 48 64 96 128 256; do install -Dpm644 images/appicons/${x}x${x}.png $FLATPAK_DEST/share/icons/hicolor/${x}x${x}/apps/$FLATPAK_ID.png; done"
    ],
    "modules": [
     {
      "name": "boost",
      "buildsystem": "simple",
      "build-commands": [
       "./bootstrap.sh --prefix=$FLATPAK_DEST --with-libraries=chrono,date_time,filesystem,locale,program_options,regex,serialization,system,thread",
       "./b2 headers",
       "./b2 -j$FLATPAK_BUILDER_N_JOBS install variant=release --layout=system"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://archives.boost.io/release/1.88.0/source/boost_1_88_0.tar.gz",
        "sha256": "3621533e820dcab1e8012afd583c0c73cf0f77694952b81352bf38c1488f9cb4"
       }
      ]
     },
     {
      "name": "protobuf",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/protocolbuffers/protobuf/releases/download/v21.3/protobuf-cpp-3.21.3.tar.gz",
        "sha256": "c98a4f17ed57e9e4dafc4a52e76ee012f9a6a13750488b20b4c370a3eb1561fc"
       }
      ]
     },
     {
      "name": "libunbound",
      "config-opts": [
       "--with-libunbound-only"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://nlnetlabs.nl/downloads/unbound/unbound-1.26.1.tar.gz",
        "sha256": "35a6dc0e425a9282c3426d9a3043144011bf0534aed4b73ab62c52aee0af1503",
        "x-checker-data": {
         "type": "html",
         "url": "https://nlnetlabs.nl/downloads/unbound/",
         "pattern": "(unbound-([\\d\\.]+)\\.tar\\.gz)"
        }
       }
      ]
     },
     {
      "name": "libsodium",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/jedisct1/libsodium/releases/download/1.0.22-RELEASE/libsodium-1.0.22.tar.gz",
        "sha256": "adbdd8f16149e81ac6078a03aca6fc03b592b89ef7b5ed83841c086191be3349",
        "x-checker-data": {
         "type": "json",
         "url": "https://api.github.com/repos/jedisct1/libsodium/releases/latest",
         "version-query": ".name",
         "url-query": ".assets | map(select(.name==\"libsodium-\\($version).tar.gz\")) | first | .browser_download_url"
        }
       }
      ]
     },
     {
      "name": "hidapi",
      "buildsystem": "cmake-ninja",
      "config-opts": [
       "-DCMAKE_BUILD_TYPE=Release"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/libusb/hidapi/archive/hidapi-0.15.0.tar.gz",
        "sha256": "5d84dec684c27b97b921d2f3b73218cb773cf4ea915caee317ac8fc73cef8136"
       }
      ]
     },
     {
      "name": "libzmq",
      "config-opts": [
       "--with-libsodium",
       "--disable-Werror"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/zeromq/libzmq/releases/download/v4.3.5/zeromq-4.3.5.tar.gz",
        "sha256": "6653ef5910f17954861fe72332e68b03ca6e4d9c7160eb3a8de5a5a913bfab43"
       }
      ]
     }
    ]
   },
   {
    "name": "p2pool",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DWITH_LTO=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/SChernykh/p2pool",
      "tag": "v4.18",
      "commit": "1748daae01ee7c657cc77bab5f9862abdf5a6041",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ],
    "post-install": [
     "install -Dm755 p2pool $FLATPAK_DEST/bin/p2pool"
    ],
    "modules": [
     {
      "name": "libgss",
      "sources": [
       {
        "type": "archive",
        "url": "https://ftp.gnu.org/gnu/gss/gss-1.0.4.tar.gz",
        "sha256": "ecceabdef4cae3fce7218b2ecb83eb4227dba44b53b61b8c2b2e88ae02419c73"
       }
      ]
     },
     {
      "name": "libuv",
      "buildsystem": "cmake-ninja",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/libuv/libuv/archive/v1.51.0.tar.gz",
        "sha256": "27e55cf7083913bfb6826ca78cde9de7647cded648d35f24163f2d31bb9f51cd"
       }
      ]
     }
    ]
   }
  ]
 }
}