{
 "app_id": "io.github.strikerx3.ymir",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.strikerx3.ymir/master/io.github.strikerx3.ymir.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all",
  "--filesystem=/media:ro",
  "--filesystem=/mnt:ro",
  "--filesystem=/run/media:ro"
 ],
 "module_count": 15,
 "fetched_at": "2026-09-17T16:12:16.794108+00:00",
 "manifest": {
  "app-id": "io.github.strikerx3.ymir",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm21"
  ],
  "command": "ymir-sdl3",
  "rename-icon": "ymir",
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio",
   "--socket=x11",
   "--device=all",
   "--filesystem=/media:ro",
   "--filesystem=/mnt:ro",
   "--filesystem=/run/media:ro"
  ],
  "modules": [
   {
    "name": "cereal",
    "buildsystem": "cmake",
    "config-opts": [
     "-D CMAKE_C_COMPILER=gcc",
     "-D CMAKE_CXX_COMPILER=g++",
     "-D SKIP_PERFORMANCE_COMPARISON=ON",
     "-D SKIP_PORTABILITY_TEST=ON"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/USCiLab/cereal.git",
      "commit": "a56bad8bbb770ee266e930c95d37fff2a5be7fea"
     }
    ]
   },
   {
    "name": "cxxopts",
    "buildsystem": "cmake",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/jarro2783/cxxopts.git",
      "tag": "v3.3.1",
      "commit": "44380e5a44706ab7347f400698c703eb2a196202"
     }
    ]
   },
   {
    "name": "date",
    "buildsystem": "cmake",
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm21/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm21/lib"
    },
    "config-opts": [
     "-D CMAKE_C_COMPILER=clang",
     "-D CMAKE_CXX_COMPILER=clang++",
     "-D CMAKE_BUILD_TYPE=Release",
     "-D ENABLE_DATE_TESTING=ON",
     "-D BUILD_TZ_LIB=ON"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/HowardHinnant/date.git",
      "commit": "a5db3aecec580bc78b6c01c118f2628676769b69"
     }
    ]
   },
   {
    "name": "rtmidi",
    "buildsystem": "cmake",
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm21/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm21/lib"
    },
    "config-opts": [
     "-D CMAKE_C_COMPILER=clang",
     "-D CMAKE_CXX_COMPILER=clang++",
     "-D CMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/thestk/rtmidi.git",
      "tag": "6.0.0",
      "commit": "1e5b49925aa60065db52de44c366d446a902547b"
     }
    ]
   },
   {
    "name": "stb",
    "buildsystem": "cmake",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Citrodata/stb-cmake.git",
      "commit": "489e513486c7ad8e84b77e8c34fcc56d81080ebf"
     }
    ],
    "post-install": [
     "install -Dm644 ${FLATPAK_DEST}/include/stb/*.h ${FLATPAK_DEST}/include/"
    ]
   },
   {
    "name": "tomlplusplus",
    "buildsystem": "cmake",
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm21/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm21/lib"
    },
    "config-opts": [
     "-D CMAKE_C_COMPILER=clang",
     "-D CMAKE_CXX_COMPILER=clang++",
     "-D CMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/marzer/tomlplusplus.git",
      "tag": "v3.4.0",
      "commit": "30172438cee64926dc41fdd9c11fb3ba5b2ba9de"
     }
    ]
   },
   {
    "name": "Catch2",
    "buildsystem": "cmake",
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm21/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm21/lib"
    },
    "builddir": true,
    "config-opts": [
     "-D CMAKE_C_COMPILER=clang",
     "-D CMAKE_CXX_COMPILER=clang++",
     "-D CMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/catchorg/Catch2.git",
      "tag": "v3.14.0",
      "commit": "b670de4fe12ac7c5e858b7de3a14fb4bd18c760e"
     }
    ]
   },
   {
    "name": "curl",
    "buildsystem": "cmake",
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm21/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm21/lib"
    },
    "config-opts": [
     "-D CMAKE_C_COMPILER=clang",
     "-D CMAKE_CXX_COMPILER=clang++",
     "-D CMAKE_BUILD_TYPE=Release",
     "-D BUILD_SHARED_LIBS=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/curl/curl.git",
      "tag": "curl-8_19_0",
      "commit": "8c908d2d0a6d32abdedda2c52e90bd56ec76c24d"
     }
    ]
   },
   {
    "name": "semver",
    "buildsystem": "cmake",
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm21/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm21/lib"
    },
    "config-opts": [
     "-D CMAKE_C_COMPILER=clang",
     "-D CMAKE_CXX_COMPILER=clang++",
     "-D CMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Neargye/semver.git",
      "tag": "v1.0.0-rc",
      "commit": "ccbbfdf2f862a48498d37d5955743a5082ee49bf"
     }
    ]
   },
   {
    "name": "json",
    "buildsystem": "cmake",
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm21/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm21/lib"
    },
    "config-opts": [
     "-D CMAKE_C_COMPILER=clang",
     "-D CMAKE_CXX_COMPILER=clang++",
     "-D CMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/nlohmann/json.git",
      "tag": "v3.12.0",
      "commit": "55f93686c01528224f448c19128836e7df245f72"
     }
    ]
   },
   {
    "name": "ngtcp2",
    "buildsystem": "cmake",
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm21/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm21/lib"
    },
    "config-opts": [
     "-D CMAKE_C_COMPILER=clang",
     "-D CMAKE_CXX_COMPILER=clang++",
     "-D CMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/ngtcp2/ngtcp2.git",
      "tag": "v1.22.1",
      "commit": "716e64b05f4a3709dfc0b0522cf9fd4456d055e5"
     }
    ]
   },
   {
    "name": "nghttp3",
    "buildsystem": "cmake",
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm21/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm21/lib"
    },
    "config-opts": [
     "-D CMAKE_C_COMPILER=clang",
     "-D CMAKE_CXX_COMPILER=clang++",
     "-D CMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/ngtcp2/nghttp3.git",
      "tag": "v1.15.0",
      "commit": "d326f4c1eb3f6a780d77793b30e16756c498f913"
     }
    ]
   },
   {
    "name": "zstd",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm21/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm21/lib"
    },
    "config-opts": [
     "-D CMAKE_C_COMPILER=clang",
     "-D CMAKE_CXX_COMPILER=clang++",
     "-D CMAKE_BUILD_TYPE=Release"
    ],
    "build-commands": [
     "mkdir build/cmake/builddir",
     "cmake -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ -D CMAKE_BUILD_TYPE=Release -B build/cmake/builddir -S build/cmake/",
     "cmake --build build/cmake/builddir --parallel",
     "cmake --install build/cmake/builddir --config Release --prefix=/app/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/facebook/zstd",
      "tag": "v1.5.7",
      "commit": "f8745da6ff1ad1e7bab384bd1f9d742439278e99"
     }
    ]
   },
   {
    "name": "miniz",
    "buildsystem": "cmake",
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm21/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm21/lib"
    },
    "config-opts": [
     "-D CMAKE_C_COMPILER=clang",
     "-D CMAKE_CXX_COMPILER=clang++",
     "-D CMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/richgel999/miniz",
      "tag": "3.1.1",
      "commit": "d10b03cc73475af673df40f06e5cefd1d5f940d9"
     }
    ]
   },
   {
    "name": "ymir",
    "buildsystem": "cmake-ninja",
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm21/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm21/lib"
    },
    "config-opts": [
     "-D CMAKE_C_COMPILER=clang",
     "-D CMAKE_CXX_COMPILER=clang++",
     "-D CMAKE_BUILD_TYPE=Release",
     "-D Ymir_EXTRA_INLINING=ON",
     "-D Ymir_ENABLE_SANDBOX=OFF",
     "-D Ymir_ENABLE_IPO=ON",
     "-D Ymir_ENABLE_DEVLOG=OFF",
     "-D Ymir_ENABLE_IMGUI_DEMO=OFF",
     "-D Ymir_DEV_BUILD=OFF",
     "-D Ymir_ENABLE_UPDATE_CHECKS=OFF",
     "-D Ymir_ENABLE_YMDASM=OFF"
    ],
    "post-install": [
     "desktop-file-edit apps/ymir-sdl3/res/io.github.strikerx3.ymir.desktop --set-key=Exec --set-value=\"ymir-sdl3 --user\"",
     "install -Dm755 apps/ymir-sdl3/ymir-sdl3 ${FLATPAK_DEST}/bin/ymir-sdl3",
     "install -Dm644 apps/ymir-sdl3/res/io.github.strikerx3.ymir.xml ${FLATPAK_DEST}/share/metainfo/io.github.strikerx3.ymir.metainfo.xml",
     "install -Dm644 apps/ymir-sdl3/res/io.github.strikerx3.ymir.desktop -t ${FLATPAK_DEST}/share/applications",
     "install -Dm644 apps/ymir-sdl3/res/ymir.png -t ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps"
    ],
    "cleanup": [
     "/lib/cmake",
     "/lib/pkgconfig",
     "/include",
     "/bin/curl-config",
     "/bin/wcurl",
     "/bin/curl",
     "/share/Catch2",
     "/share/tomlplusplus",
     "/share/rtmidi",
     "/share/man",
     "/share/doc",
     "/share/cmake",
     "/include/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/StrikerX3/Ymir.git",
      "tag": "v0.3.3",
      "commit": "54fead6a0001d3e4b6741a8d095ee8342266c3dc",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/StrikerX3/ymir/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "tag-query": ".tag_name",
       "timestamp-query": ".published_at"
      }
     },
     {
      "type": "patch",
      "path": "io.github.strikerx3.ymir.xml.patch"
     }
    ]
   }
  ]
 }
}