{
 "app_id": "io.github.twanvl.MagicSetEditor2",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.twanvl.MagicSetEditor2/master/io.github.twanvl.MagicSetEditor2.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--filesystem=home"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:12:26.536964+00:00",
 "manifest": {
  "app-id": "io.github.twanvl.MagicSetEditor2",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "magicseteditor",
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--filesystem=home",
   "--persist=.magicseteditor"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/share/aclocal",
   "*.a"
  ],
  "modules": [
   "shared-modules/glu/glu-9.json",
   {
    "name": "wxwidgets",
    "build-options": {
     "cxxflags": "-std=c++0x"
    },
    "config-opts": [
     "--disable-webview",
     "--disable-webviewwebkit",
     "--with-libiconv=/usr"
    ],
    "cleanup": [
     "/bin/wx*"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/wxWidgets/wxWidgets",
      "tag": "v3.0.5.1",
      "commit": "2740737b40d30817b474e30ff76e43f0903c2e97"
     }
    ]
   },
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --prefix=${FLATPAK_DEST} --with-libraries=regex",
     "./b2 headers",
     "./b2 -j$FLATPAK_BUILDER_N_JOBS install variant=release cxxstd=17 --layout=system"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/boost/boost/1.75.0/boost_1_75_0.tar.bz2",
      "sha256": "953db31e016db7bb207f11432bef7df100516eeb746843fa0486a222e3fd49cb"
     }
    ]
   },
   {
    "name": "magicseteditor",
    "buildsystem": "cmake-ninja",
    "no-make-install": true,
    "post-install": [
     "install -Dm755 ./magicseteditor -t /app/bin/",
     "install -d /app/share/magicseteditor",
     "cp -r ./resource /app/share/magicseteditor",
     "install -D --mode=644 ${FLATPAK_ID}.desktop      -t /app/share/applications",
     "install -D --mode=644 ${FLATPAK_ID}.png          -t /app/share/icons/hicolor/128x128/apps",
     "install -D --mode=644 ${FLATPAK_ID}.metainfo.xml -t /app/share/metainfo"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/twanvl/MagicSetEditor2",
      "commit": "f9d9356d51f28210ccf0c0dda508502f222e1def"
     },
     {
      "type": "file",
      "path": "io.github.twanvl.MagicSetEditor2.desktop"
     },
     {
      "type": "file",
      "path": "io.github.twanvl.MagicSetEditor2.metainfo.xml"
     },
     {
      "type": "file",
      "path": "io.github.twanvl.MagicSetEditor2.png"
     }
    ]
   }
  ]
 }
}