{
  "id" : "com.github.iwalton3.jellyfin-media-player",
  "runtime" : "org.kde.Platform",
  "runtime-version" : "5.15-24.08",
  "runtime-commit" : "9aa61e0a3c9d7575d2431e87c4ec248af208dcd88faf57fbe0d2370676b819fc",
  "sdk" : "org.kde.Sdk",
  "sdk-commit" : "144247cfdd84c8f8ddc1db4b287a56a240f6297da0bad54b74a2509c1d05823e",
  "base" : "io.qt.qtwebengine.BaseApp",
  "base-version" : "5.15-24.08",
  "base-commit" : "c0813ce57f7a91f33758298c3cc83330a794a2ef23a7de61b02bf3097b820ba4",
  "command" : "jellyfinmediaplayer",
  "modules" : [
    {
      "name" : "jellyfin-media-player",
      "buildsystem" : "cmake-ninja",
      "config-opts" : [
        "-DCMAKE_BUILD_TYPE=Release",
        "-DQTROOT=/usr",
        "-DOpenGL_GL_PREFERENCE=GLVND"
      ],
      "sources" : [
        {
          "url" : "https://github.com/iwalton3/jellyfin-media-player.git",
          "commit" : "41ba4348addd46b806ba7bd1a0c92b457ae5ed7c",
          "type" : "git"
        }
      ],
      "post-install" : [
        "install -Dm644 resources/meta/com.github.iwalton3.jellyfin-media-player.desktop /app/share/applications/com.github.iwalton3.jellyfin-media-player.desktop",
        "install -Dm644 resources/images/icon.png /app/share/icons/hicolor/256x256/apps/com.github.iwalton3.jellyfin-media-player.png",
        "install -Dm644 resources/images/icon.svg /app/share/icons/hicolor/scalable/apps/com.github.iwalton3.jellyfin-media-player.svg",
        "install -Dm644 resources/meta/com.github.iwalton3.jellyfin-media-player.appdata.xml /app/share/metainfo/com.github.iwalton3.jellyfin-media-player.appdata.xml"
      ],
      "modules" : [
        {
          "name" : "mpv",
          "buildsystem" : "meson",
          "config-opts" : [
            "-Dlibmpv=true",
            "-Dcplayer=false",
            "-Dbuild-date=false",
            "-Dmanpage-build=disabled",
            "-Dvaapi=enabled",
            "-Dcuda-hwaccel=enabled",
            "-Dpulse=enabled",
            "-Dalsa=enabled",
            "-Duchardet=enabled"
          ],
          "sources" : [
            {
              "url" : "https://github.com/mpv-player/mpv.git",
              "commit" : "63329f68c61c3511f8d4ca2d57c972d0e703eb63",
              "x-checker-data" : {
                "type" : "git",
                "tag-pattern" : "^v([\\d.]+)$"
              },
              "type" : "git"
            }
          ],
          "cleanup" : [
            "/lib/pkgconfig",
            "/share",
            "/include"
          ],
          "modules" : [
            {
              "name" : "ffnvcodec",
              "buildsystem" : "simple",
              "sources" : [
                {
                  "url" : "https://github.com/FFmpeg/nv-codec-headers.git",
                  "commit" : "57f8cc0bb68e5f16f3787ea92cea59000f7bf97f",
                  "x-checker-data" : {
                    "type" : "git",
                    "tag-pattern" : "^n([\\d.]+)$"
                  },
                  "type" : "git"
                }
              ],
              "cleanup" : [
                "/lib/pkgconfig",
                "/include"
              ],
              "build-commands" : [
                "make install PREFIX=/app"
              ]
            },
            {
              "name" : "luajit",
              "no-autogen" : true,
              "make-args" : [
                "BUILDMODE=dynamic",
                "PREFIX=${FLATPAK_DEST}"
              ],
              "make-install-args" : [
                "PREFIX=${FLATPAK_DEST}"
              ],
              "sources" : [
                {
                  "url" : "https://github.com/openresty/luajit2.git",
                  "commit" : "4182d6bf37e9f8d1cb5d6e83b1db66de84b95101",
                  "x-checker-data" : {
                    "type" : "git",
                    "tag-pattern" : "^v([\\d.-]+)$",
                    "stable-only" : false
                  },
                  "type" : "git"
                }
              ],
              "cleanup" : [
                "/bin",
                "/include",
                "/lib/pkgconfig",
                "/share/man"
              ]
            },
            {
              "name" : "libass",
              "config-opts" : [
                "--enable-shared",
                "--disable-static"
              ],
              "sources" : [
                {
                  "url" : "https://github.com/libass/libass.git",
                  "commit" : "01ae90a8028545704848fcb19b680ccb3964948d",
                  "x-checker-data" : {
                    "type" : "git",
                    "tag-pattern" : "^([\\d.]+)$"
                  },
                  "type" : "git"
                }
              ],
              "cleanup" : [
                "/lib/*.la",
                "/lib/pkgconfig",
                "/include"
              ]
            },
            {
              "name" : "uchardet",
              "buildsystem" : "cmake-ninja",
              "config-opts" : [
                "-DCMAKE_BUILD_TYPE=Release",
                "-DCMAKE_INSTALL_LIBDIR=lib",
                "-DBUILD_BINARY=OFF"
              ],
              "sources" : [
                {
                  "url" : "https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.8.tar.xz",
                  "sha256" : "e97a60cfc00a1c147a674b097bb1422abd9fa78a2d9ce3f3fdcc2e78a34ac5f0",
                  "x-checker-data" : {
                    "type" : "html",
                    "url" : "https://www.freedesktop.org/software/uchardet/releases/",
                    "version-pattern" : "uchardet-(\\d+\\.\\d+\\.\\d+)\\.tar\\.xz",
                    "url-template" : "https://www.freedesktop.org/software/uchardet/releases/uchardet-$version.tar.xz"
                  },
                  "type" : "archive"
                }
              ],
              "cleanup" : [
                "/lib/*.a",
                "/lib/pkgconfig",
                "/share",
                "/include"
              ]
            },
            {
              "name" : "libplacebo",
              "buildsystem" : "meson",
              "config-opts" : [
                "-Dvulkan=enabled",
                "-Dshaderc=enabled",
                "--libdir=lib"
              ],
              "sources" : [
                {
                  "url" : "https://code.videolan.org/videolan/libplacebo.git",
                  "commit" : "9c4b6bbd7a1e223ffdd61affc4e5d463d42d4345",
                  "x-checker-data" : {
                    "type" : "git",
                    "tag-pattern" : "^v([\\d.]+)$"
                  },
                  "type" : "git"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "cleanup-commands" : [
    "mkdir -p /app/lib/ffmpeg"
  ],
  "finish-args" : [
    "--socket=wayland",
    "--socket=fallback-x11",
    "--socket=pulseaudio",
    "--share=ipc",
    "--share=network",
    "--device=dri",
    "--talk-name=org.freedesktop.PowerManagement",
    "--talk-name=org.freedesktop.ScreenSaver",
    "--own-name=org.mpris.MediaPlayer2.mpv",
    "--system-talk-name=org.freedesktop.login1"
  ],
  "add-extensions" : {
    "org.freedesktop.Platform.ffmpeg-full" : {
      "directory" : "lib/ffmpeg",
      "add-ld-path" : ".",
      "version" : "24.08"
    }
  },
  "source-date-epoch" : 1742534467
}