{
 "app_id": "fun.dragonfly.switchfin",
 "source_url": "https://raw.githubusercontent.com/flathub/fun.dragonfly.switchfin/master/fun.dragonfly.switchfin.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=all",
  "--filesystem=~/.steam"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-17T16:09:59.859665+00:00",
 "manifest": {
  "app-id": "fun.dragonfly.switchfin",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "Switchfin",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=all",
   "--share=network",
   "--socket=pulseaudio",
   "--filesystem=~/.steam"
  ],
  "cleanup": [
   "*.a",
   "*.la",
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/man",
   "/share/man",
   "/share/gtk-doc"
  ],
  "modules": [
   {
    "name": "libmpv",
    "buildsystem": "meson",
    "config-opts": [
     "--buildtype=release",
     "-Dlibmpv=true",
     "-Dcplayer=false",
     "-Dtests=false",
     "-Dlibarchive=disabled",
     "-Dmanpage-build=disabled",
     "-Dlua=disabled",
     "-Dvulkan=disabled"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/mpv-player/mpv/archive/v0.41.0.tar.gz",
      "sha256": "ee21092a5ee427353392360929dc64645c54479aefdb5babc5cfbb5fad626209",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 5348,
       "stable-only": true,
       "url-template": "https://github.com/mpv-player/mpv/archive/v$version.tar.gz"
      }
     }
    ],
    "modules": [
     {
      "name": "libXpresent",
      "buildsystem": "autotools",
      "sources": [
       {
        "type": "archive",
        "url": "https://xorg.freedesktop.org/archive/individual/lib/libXpresent-1.0.2.tar.xz",
        "sha256": "4e5b21b4812206a4b223013606ae31170502c1043038777a1ef8f70c09d37602",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 17166,
         "stable-only": true,
         "url-template": "https://xorg.freedesktop.org/archive/individual/lib/libXpresent-$version.tar.xz"
        }
       }
      ]
     },
     {
      "name": "libdisplay-info",
      "cleanup": [
       "/bin"
      ],
      "buildsystem": "meson",
      "sources": [
       {
        "type": "archive",
        "url": "https://gitlab.freedesktop.org/emersion/libdisplay-info/-/releases/0.3.0/downloads/libdisplay-info-0.3.0.tar.xz",
        "sha256": "6ae77cd937f9cf7d1321d35c116062c4911e8447010a6a713ac4286f7a9d5987"
       }
      ],
      "modules": [
       {
        "name": "hwdata",
        "cleanup": [
         "*"
        ],
        "config-opts": [
         "--disable-blacklist"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://github.com/vcrhonek/hwdata/archive/v0.410.tar.gz",
          "sha256": "2864b061b179b8ad8cb6a7339ca07678240a183d9cedce8677a4950acaf798e0"
         }
        ]
       }
      ]
     },
     {
      "name": "libplacebo",
      "buildsystem": "meson",
      "config-opts": [
       "-Dglslang=disabled",
       "-Ddemos=false",
       "-Ddovi=enabled",
       "-Dlcms=disabled",
       "-Dvulkan=disabled"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://github.com/haasn/libplacebo.git",
        "tag": "v7.360.1",
        "commit": "cee9b076f2c63104ccfd497fa79c39a867293ec4",
        "x-checker-data": {
         "type": "git",
         "tag-pattern": "^v([\\d.]+)$"
        }
       }
      ]
     },
     {
      "name": "libass",
      "config-opts": [
       "--disable-static"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/libass/libass/releases/download/0.17.5/libass-0.17.5.tar.xz",
        "sha256": "2dca25c0e0c837ddf00b52011b3f82cac1e4ddd3ad018227806b0c2288864acc",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 1560,
         "stable-only": true,
         "url-template": "https://github.com/libass/libass/releases/download/$version/libass-$version.tar.xz"
        }
       }
      ]
     },
     {
      "name": "uchardet",
      "buildsystem": "cmake-ninja",
      "config-opts": [
       "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
       "-DBUILD_STATIC=OFF",
       "-DBUILD_BINARY=OFF"
      ],
      "cleanup": [
       "/bin"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.8.tar.xz",
        "sha256": "e97a60cfc00a1c147a674b097bb1422abd9fa78a2d9ce3f3fdcc2e78a34ac5f0",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 9265,
         "stable-only": true,
         "url-template": "https://www.freedesktop.org/software/uchardet/releases/uchardet-$version.tar.xz"
        }
       }
      ]
     }
    ]
   },
   {
    "name": "switchfin",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DPLATFORM_DESKTOP=ON",
     "-DUSE_SDL2=ON",
     "-DUSE_SYSTEM_SDL2=ON",
     "-USE_GLES2=OFF",
     "-DUSE_EGL=ON",
     "-DCMAKE_INSTALL=ON"
    ],
    "builddir": true,
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/dragonflylee/switchfin.git",
      "commit": "b032c04d62256576d04762ef54bb22600838d775"
     },
     {
      "type": "file",
      "path": "switchfin.svg",
      "dest": "scripts"
     },
     {
      "type": "file",
      "path": "icons/32.png",
      "dest": "scripts/icons/32x32",
      "dest-filename": "fun.dragonfly.switchfin.png"
     },
     {
      "type": "file",
      "path": "icons/48.png",
      "dest": "scripts/icons/48x48",
      "dest-filename": "fun.dragonfly.switchfin.png"
     },
     {
      "type": "file",
      "path": "icons/64.png",
      "dest": "scripts/icons/64x64",
      "dest-filename": "fun.dragonfly.switchfin.png"
     },
     {
      "type": "file",
      "path": "icons/128.png",
      "dest": "scripts/icons/128x128",
      "dest-filename": "fun.dragonfly.switchfin.png"
     },
     {
      "type": "file",
      "path": "icons/256.png",
      "dest": "scripts/icons/256x256",
      "dest-filename": "fun.dragonfly.switchfin.png"
     }
    ]
   }
  ]
 }
}