{
 "app_id": "org.jellyfin.JellyfinServer",
 "source_url": "https://raw.githubusercontent.com/flathub/org.jellyfin.JellyfinServer/master/org.jellyfin.JellyfinServer.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--device=dri",
  "--filesystem=/media:ro",
  "--filesystem=/mnt:ro",
  "--filesystem=/run/media:ro",
  "--filesystem=~/Jellyfin Server Media:create"
 ],
 "module_count": 31,
 "fetched_at": "2026-09-17T16:15:21.276284+00:00",
 "manifest": {
  "id": "org.jellyfin.JellyfinServer",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.dotnet9",
   "org.freedesktop.Sdk.Extension.node22",
   "org.freedesktop.Sdk.Extension.llvm21"
  ],
  "separate-locales": false,
  "command": "jellyfin.sh",
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/lib/*.la",
   "/lib/*.a",
   "/man",
   "/share/cmake",
   "/share/doc",
   "/share/ffmpeg",
   "/share/info",
   "/share/man",
   "/share/pkgconfig",
   "/share/vpl/examples"
  ],
  "finish-args": [
   "--device=dri",
   "--filesystem=home/Jellyfin Server Media:create",
   "--filesystem=/media:ro",
   "--filesystem=/mnt:ro",
   "--filesystem=/run/media:ro",
   "--share=network",
   "--env=PATH=/app/extensions/bin:/app/bin:/usr/bin",
   "--env=LD_LIBRARY_PATH=/app/extensions/lib:/app/lib"
  ],
  "add-extensions": {
   "org.jellyfin.JellyfinServer.Plugin": {
    "version": "stable",
    "directory": "extensions",
    "add-ld-path": "lib",
    "merge-dirs": "lib;bin;OpenCL;",
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": true
   }
  },
  "modules": [
   "shared-modules/linux-audio/fftw3f.json",
   {
    "name": "ruby",
    "config-opts": [
     "--enable-shared"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.6.tar.gz",
      "sha256": "837d299e8f7ddf2be31a229a7a7e019d354979825117989acb3b32b1a9be262a",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.ruby-lang.org/en/downloads/",
       "pattern": "(https://cache.ruby-lang.org/pub/ruby/[\\d\\.]+/ruby-([\\d\\.]+)\\.tar\\.gz)"
      }
     }
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "ocl-icd",
    "build-options": {
     "arch": {
      "x86_64": {
       "config-opts": [
        "--enable-custom-vendordir=/usr/lib/x86_64-linux-gnu/GL/OpenCL/vendors"
       ]
      },
      "aarch64": {
       "config-opts": [
        "--enable-custom-vendordir=/usr/lib/aarch64-linux-gnu/GL/OpenCL/vendors"
       ]
      }
     }
    },
    "config-opts": [
     "--enable-official-khronos-headers",
     "--disable-update-database"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/OCL-dev/ocl-icd.git",
      "commit": "3e1155f0796cb9ac0fe309664d98e4b0ed2c3300",
      "tag": "v2.3.5",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ],
    "modules": [
     {
      "name": "khronos-opencl-headers",
      "buildsystem": "cmake-ninja",
      "sources": [
       {
        "type": "git",
        "url": "https://github.com/KhronosGroup/OpenCL-Headers.git",
        "commit": "6fe718c31a45fe25151362a72ef041c3a1047cbd",
        "tag": "v2026.05.29",
        "x-checker-data": {
         "type": "git",
         "tag-pattern": "^v([\\d.]+)$"
        }
       }
      ]
     }
    ]
   },
   {
    "name": "intel-mediasdk",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_SAMPLES=OFF",
     "-DBUILD_TESTS=OFF",
     "-DBUILD_TUTORIALS=OFF",
     "-DCMAKE_BUILD_TYPE=Release",
     "-DENABLE_X11=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Intel-Media-SDK/MediaSDK.git",
      "commit": "869b60a6c3d7b5e9f7c3b3b914986322dca4bbae",
      "tag": "intel-mediasdk-23.2.2",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^intel-mediasdk-([\\d.]+)$"
      }
     },
     {
      "type": "patch",
      "path": "data/intel-mediasdk-gcc13.patch"
     }
    ]
   },
   {
    "name": "onevpl",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_TOOLS=OFF",
     "-DBUILD_TESTS=OFF",
     "-DBUILD_EXAMPLES=OFF",
     "-DINSTALL_EXAMPLE_CODE=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/intel/libvpl.git",
      "commit": "d77f9195cf495b937631607333288fd917ae8939",
      "tag": "v2.17.0",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$",
       "versions": {
        "<": "2000.0.0"
       }
      }
     }
    ]
   },
   {
    "name": "onevpl-intel-gpu",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_TOOLS=OFF",
     "-DBUILD_TESTS=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/intel/vpl-gpu-rt.git",
      "commit": "0c9806972b31e68b20776c076e1f2d7cce4e90fe",
      "tag": "intel-onevpl-26.3.3",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^intel-onevpl-([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "chromaprint",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_SHARED_LIBS=ON",
     "-DBUILD_TOOLS=OFF",
     "-DBUILD_TESTS=OFF",
     "-DFFT_LIB=fftw3f"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/acoustid/chromaprint.git",
      "commit": "aed8eba2202dd9d7b3b0a56c77904cc805490d72",
      "tag": "v1.6.1",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "libopenmpt",
    "no-autogen": true,
    "make-install-args": [
     "PREFIX=${FLATPAK_DEST}"
    ],
    "config-opts": [
     "--disable-examples",
     "--disable-openmpt123",
     "--disable-static",
     "--disable-tests",
     "--without-portaudio",
     "--without-portaudiocpp"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/OpenMPT/openmpt.git",
      "commit": "5d605f5bd6944931fad9266947dad953017ed9b0",
      "tag": "libopenmpt-0.8.9",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^libopenmpt-([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "fdk-aac",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_SHARED_LIBS=ON",
     "-DCMAKE_INSTALL_LIBDIR=lib"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/mstorsjo/fdk-aac.git",
      "commit": "716f4394641d53f0d79c9ddac3fa93b03a49f278",
      "tag": "v2.0.3",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "libass",
    "config-opts": [
     "--enable-shared",
     "--disable-static",
     "--with-pic"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libass/libass.git",
      "commit": "4a05d8127f525943ebf45fdc6497c9e665947f0d",
      "tag": "0.17.5",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "libbluray",
    "config-opts": [
     "--enable-shared",
     "--disable-static",
     "--with-pic",
     "--disable-doxygen-doc",
     "--disable-doxygen-dot",
     "--disable-doxygen-html",
     "--disable-doxygen-ps",
     "--disable-doxygen-pdf",
     "--disable-examples",
     "--disable-bdjava-jar"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://code.videolan.org/videolan/libbluray.git",
      "commit": "bb5bc108ec695889855f06df338958004ff289ef",
      "tag": "1.3.4",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$",
       "versions": {
        "<": "1.4.0"
       }
      }
     }
    ]
   },
   {
    "name": "shaderc",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DSHADERC_SKIP_TESTS=ON",
     "-DSHADERC_SKIP_EXAMPLES=ON",
     "-DSHADERC_SKIP_COPYRIGHT_CHECK=ON",
     "-DENABLE_EXCEPTIONS=ON",
     "-DENABLE_GLSLANG_BINARIES=OFF",
     "-DSPIRV_SKIP_EXECUTABLES=ON",
     "-DSPIRV_TOOLS_BUILD_STATIC=OFF",
     "-DBUILD_SHARED_LIBS=ON"
    ],
    "cleanup": [
     "/bin",
     "/include",
     "/lib/cmake",
     "/lib/pkgconfig"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/google/shaderc.git",
      "commit": "b64fd42c4a2a9d501c47aca5d3571f7673a5e9cc",
      "tag": "v2026.4",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "git",
      "url": "https://github.com/KhronosGroup/SPIRV-Tools.git",
      "dest": "third_party/spirv-tools",
      "commit": "0539c81f69a3daeb706fd3477dca61435b475156",
      "tag": "v2026.2",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$",
       "versions": {
        "!=": "v2026.3"
       }
      }
     },
     {
      "type": "git",
      "url": "https://github.com/KhronosGroup/SPIRV-Headers.git",
      "dest": "third_party/spirv-headers",
      "commit": "ad9184e76a66b1001c29db9b0a3e87f646c64de0",
      "tag": "vulkan-sdk-1.4.350.1",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^vulkan-sdk-([\\d.]+)$",
       "versions": {
        "!=": "1.4.357.0"
       }
      }
     },
     {
      "type": "git",
      "url": "https://github.com/KhronosGroup/glslang.git",
      "dest": "third_party/glslang",
      "commit": "275822a6261ee689aadb1da5f09a0ec2f058685c",
      "tag": "vulkan-sdk-1.4.350.1",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^vulkan-sdk-([\\d.]+)$",
       "versions": {
        "!=": "1.4.357.0"
       }
      }
     }
    ]
   },
   {
    "name": "libplacebo",
    "buildsystem": "meson",
    "config-opts": [
     "--buildtype=release",
     "--default-library=shared",
     "-Dvulkan=enabled",
     "-Dvk-proc-addr=enabled",
     "-Dvulkan-registry=${FLATPAK_DEST}/share/vulkan/registry/vk.xml",
     "-Dshaderc=enabled",
     "-Dglslang=disabled",
     "-Ddemos=false",
     "-Dtests=false",
     "-Dbench=false",
     "-Dfuzz=false"
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/haasn/libplacebo.git",
      "commit": "cee9b076f2c63104ccfd497fa79c39a867293ec4",
      "tag": "v7.360.1",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "git",
      "url": "https://github.com/KhronosGroup/Vulkan-Loader.git",
      "commit": "a9e72c66d5cb79911eb9a9063bf4016dd0a3a123",
      "tag": "vulkan-sdk-1.4.350.1",
      "dest": "tmp/vulkan-loader",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^vulkan-sdk-([\\d.]+)$",
       "versions": {
        "!=": "1.4.357.0"
       }
      }
     }
    ]
   },
   {
    "name": "numactl",
    "rm-configure": true,
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/numactl/numactl.git",
      "commit": "3bc85e37d5a30da6790cb7e8bb488bb8f679170f",
      "tag": "v2.0.19",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "x264",
    "config-opts": [
     "--disable-cli",
     "--enable-shared",
     "--disable-static",
     "--enable-pic",
     "--disable-lavf",
     "--disable-swscale"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://code.videolan.org/videolan/x264.git",
      "commit": "0480cb05fa188d37ae87e8f4fd8f1aea3711f7ee"
     }
    ]
   },
   {
    "name": "x265-8bit",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "subdir": "source",
    "build-options": {
     "arch": {
      "x86_64": {
       "config-opts": [
        "-DCMAKE_ASM_NASM_FLAGS=-w-macro-params-legacy"
       ]
      },
      "aarch64": {
       "append-path": "/usr/lib/sdk/llvm21/bin",
       "prepend-ld-library-path": "/usr/lib/sdk/llvm21/lib",
       "env": {
        "CC": "clang",
        "CXX": "clang++"
       },
       "config-opts": [
        "-DENABLE_ASSEMBLY=OFF"
       ]
      }
     },
     "cxxflags": "-include cstdint"
    },
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DENABLE_CLI=OFF",
     "-DENABLE_HDR10_PLUS=ON",
     "-DENABLE_PIC=ON",
     "-DENABLE_SHARED=ON",
     "-DEXTRA_LIB=x265_main10.a;x265_main12.a",
     "-DEXTRA_LINK_FLAGS=-L .",
     "-DLINKED_10BIT=ON",
     "-DLINKED_12BIT=ON"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://bitbucket.org/multicoreware/x265_git.git",
      "commit": "78e5ac35c13c5cbccc5933083edceb0d3eaeaa21"
     }
    ],
    "modules": [
     {
      "name": "x265-10bit",
      "buildsystem": "cmake-ninja",
      "builddir": true,
      "subdir": "source",
      "no-make-install": true,
      "build-options": {
       "arch": {
        "x86_64": {
         "config-opts": [
          "-DCMAKE_ASM_NASM_FLAGS=-w-macro-params-legacy"
         ]
        },
        "aarch64": {
         "append-path": "/usr/lib/sdk/llvm21/bin",
         "prepend-ld-library-path": "/usr/lib/sdk/llvm21/lib",
         "env": {
          "CC": "clang",
          "CXX": "clang++"
         },
         "config-opts": [
          "-DENABLE_ASSEMBLY=OFF"
         ]
        }
       },
       "cxxflags": "-include cstdint"
      },
      "config-opts": [
       "-DCMAKE_BUILD_TYPE=Release",
       "-DENABLE_CLI=OFF",
       "-DENABLE_HDR10_PLUS=ON",
       "-DENABLE_PIC=ON",
       "-DENABLE_SHARED=OFF",
       "-DEXPORT_C_API=OFF",
       "-DHIGH_BIT_DEPTH=ON"
      ],
      "build-commands": [
       "install -D libx265.a $FLATPAK_DEST/lib/libx265_main10.a"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://bitbucket.org/multicoreware/x265_git.git",
        "commit": "78e5ac35c13c5cbccc5933083edceb0d3eaeaa21"
       }
      ]
     },
     {
      "name": "x265-12bit",
      "buildsystem": "cmake-ninja",
      "builddir": true,
      "subdir": "source",
      "no-make-install": true,
      "build-options": {
       "arch": {
        "x86_64": {
         "config-opts": [
          "-DCMAKE_ASM_NASM_FLAGS=-w-macro-params-legacy"
         ]
        },
        "aarch64": {
         "append-path": "/usr/lib/sdk/llvm21/bin",
         "prepend-ld-library-path": "/usr/lib/sdk/llvm21/lib",
         "env": {
          "CC": "clang",
          "CXX": "clang++"
         },
         "config-opts": [
          "-DENABLE_ASSEMBLY=OFF"
         ]
        }
       },
       "cxxflags": "-include cstdint"
      },
      "config-opts": [
       "-DCMAKE_BUILD_TYPE=Release",
       "-DENABLE_CLI=OFF",
       "-DENABLE_HDR10_PLUS=ON",
       "-DENABLE_PIC=ON",
       "-DENABLE_SHARED=OFF",
       "-DEXPORT_C_API=OFF",
       "-DHIGH_BIT_DEPTH=ON",
       "-DMAIN12=ON"
      ],
      "build-commands": [
       "install -D libx265.a $FLATPAK_DEST/lib/libx265_main12.a"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://bitbucket.org/multicoreware/x265_git.git",
        "commit": "78e5ac35c13c5cbccc5933083edceb0d3eaeaa21"
       }
      ]
     }
    ]
   },
   {
    "name": "zimg",
    "config-opts": [
     "--enable-shared",
     "--disable-static",
     "--with-pic"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/sekrit-twc/zimg.git",
      "commit": "f819b14e8f39d1282400b0d9543e8ef73c1b2bbd",
      "tag": "release-3.0.6",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^release-([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "zvbi",
    "config-opts": [
     "--enable-shared",
     "--disable-static",
     "--with-pic",
     "--without-doxygen",
     "--without-x",
     "--disable-dvb",
     "--disable-bktr",
     "--disable-nls",
     "--disable-proxy"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/zapping-vbi/zvbi.git",
      "tag": "v0.2.45",
      "commit": "d3a5ee9f2b047bf16cd1ee5ccf6ec05ee75409d0",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "nv-codec-headers",
    "no-autogen": true,
    "make-install-args": [
     "PREFIX=${FLATPAK_DEST}"
    ],
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/FFmpeg/nv-codec-headers.git",
      "tag": "n13.1.15.0",
      "commit": "0a6fba9a2820628b8103464f4c8753ee05838baa",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^n([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "amf",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p $FLATPAK_DEST/include",
     "mv amf/public/include $FLATPAK_DEST/include/AMF"
    ],
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/GPUOpen-LibrariesAndSDKs/AMF/archive/refs/tags/v1.5.2.tar.gz",
      "sha256": "8a70b6dc85261e6e6e57769bd81ac1e09c0a4c96bbd5e358ffbc2dee51e8e50a",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 138182,
       "stable-only": true,
       "url-template": "https://github.com/GPUOpen-LibrariesAndSDKs/AMF/archive/refs/tags/v$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "svt-av1",
    "buildsystem": "cmake-ninja",
    "build-options": {
     "arch": {
      "x86_64": {
       "config-opts": [
        "-DENABLE_AVX512=ON"
       ]
      }
     }
    },
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_SHARED_LIBS=ON",
     "-DBUILD_TESTING=OFF",
     "-DBUILD_APPS=OFF"
    ],
    "builddir": true,
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.com/AOMediaCodec/SVT-AV1.git",
      "commit": "9292ec8e32bce26f781f277ec8739b53426c4300",
      "tag": "v4.2.0",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "clinfo",
    "buildsystem": "simple",
    "build-commands": [
     "make -j$FLATPAK_BUILDER_N_JOBS PREFIX=$FLATPAK_DEST install",
     "chmod 755 $FLATPAK_DEST/bin/clinfo"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Oblomov/clinfo.git",
      "commit": "c57b7e73e910ca1b558415472c8192eeb75711b1",
      "tag": "3.0.25.02.14",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d]+\\.[\\d]+\\.[\\d]+\\.[\\d]+\\.[\\d]+)$"
      }
     }
    ]
   },
   {
    "name": "vulkan-tools",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_CUBE=OFF",
     "-DBUILD_ICD=OFF",
     "-DCMAKE_BUILD_TYPE=Release",
     "-DVULKAN_HEADERS_INSTALL_DIR=/app",
     "-DVOLK_INSTALL_DIR=/app"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://salsa.debian.org/xorg-team/vulkan/vulkan-tools.git",
      "commit": "20d634905d79a1c6e2265cd41db79b0153eaf1b6",
      "tag": "debian/1.4.341.0+dfsg1-1",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^debian/([\\d.]+)\\+dfsg1-1$"
      }
     }
    ],
    "modules": [
     {
      "name": "vulkan-headers",
      "buildsystem": "cmake-ninja",
      "subdir": "vulkan-headers",
      "sources": [
       {
        "type": "git",
        "url": "https://salsa.debian.org/xorg-team/vulkan/vulkan-loader.git",
        "commit": "e3a3df62e0b7e9b12dacb626a8d554a47ad9ed2d",
        "tag": "debian/1.4.341.0-1",
        "x-checker-data": {
         "type": "git",
         "tag-pattern": "^debian/([\\d.]+)-1$",
         "versions": {
          "!=": "1.4.357.0"
         }
        }
       }
      ]
     },
     {
      "name": "volk",
      "buildsystem": "cmake-ninja",
      "config-opts": [
       "-DCMAKE_BUILD_TYPE=Release",
       "-DVOLK_INSTALL=ON"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://salsa.debian.org/xorg-team/vulkan/vulkan-volk.git",
        "commit": "a2720982c30356f99702ad9774575c4de7abf06f",
        "tag": "debian/1.4.357.0-1",
        "x-checker-data": {
         "type": "git",
         "tag-pattern": "^debian/([\\d.]+)-1$"
        }
       }
      ]
     }
    ]
   },
   {
    "name": "jellyfin-ffmpeg",
    "disabled": false,
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm21/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm21/lib",
     "arch": {
      "x86_64": {
       "config-opts": [
        "--enable-libvpl",
        "--enable-amf",
        "--enable-cuda",
        "--enable-cuda-llvm",
        "--enable-cuvid",
        "--enable-ffnvcodec",
        "--enable-libplacebo",
        "--enable-libshaderc",
        "--enable-nvdec",
        "--enable-nvenc",
        "--enable-vaapi",
        "--enable-vulkan"
       ]
      },
      "aarch64": {
       "config-opts": [
        "--toolchain=hardened",
        "--enable-ffnvcodec",
        "--enable-cuda",
        "--enable-cuda-llvm",
        "--enable-cuvid",
        "--enable-nvdec",
        "--enable-nvenc"
       ]
      }
     }
    },
    "config-opts": [
     "--disable-doc",
     "--disable-ffplay",
     "--disable-libxcb",
     "--disable-ptx-compression",
     "--disable-sdl2",
     "--disable-static",
     "--disable-xlib",
     "--enable-chromaprint",
     "--enable-gmp",
     "--enable-gnutls",
     "--enable-gpl",
     "--enable-libass",
     "--enable-libbluray",
     "--enable-libdav1d",
     "--enable-libdrm",
     "--enable-libfdk-aac",
     "--enable-libfontconfig",
     "--enable-libfreetype",
     "--enable-libfribidi",
     "--enable-libharfbuzz",
     "--enable-libmp3lame",
     "--enable-libopenmpt",
     "--enable-libopus",
     "--enable-libsvtav1",
     "--enable-libtheora",
     "--enable-libvorbis",
     "--enable-libvpx",
     "--enable-libwebp",
     "--enable-libx264",
     "--enable-libx265",
     "--enable-libxml2",
     "--enable-libzimg",
     "--enable-libzvbi",
     "--enable-lto=auto",
     "--enable-opencl",
     "--enable-shared",
     "--enable-version3",
     "--extra-libs=-lfftw3f",
     "--extra-version=Jellyfin",
     "--target-os=linux"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/jellyfin/jellyfin-ffmpeg.git",
      "commit": "d4590e12452f94d40e413caecb34b08de608353b",
      "tag": "v7.1.4-3",
      "x-checker-data": {
       "is-main-source": true,
       "type": "git",
       "tag-pattern": "^v([\\d.]+)-\\d$",
       "versions": {
        "<": "8.0"
       }
      }
     },
     {
      "type": "shell",
      "commands": [
       "cat debian/patches/*.patch | patch -Np1 -d ."
      ]
     }
    ]
   },
   {
    "name": "jellyfin-web",
    "disabled": false,
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/node22/bin"
    },
    "build-commands": [
     "npm ci --no-audit --offline --cache=$FLATPAK_BUILDER_BUILDDIR/flatpak-node/npm-cache",
     "npm run build:production --offline --cache=$FLATPAK_BUILDER_BUILDDIR/flatpak-node/npm-cache",
     "mkdir -p $FLATPAK_DEST/bin/jellyfin-web",
     "cp -r dist/* $FLATPAK_DEST/bin/jellyfin-web"
    ],
    "sources": [
     "npm-generated-sources.json",
     {
      "type": "git",
      "url": "https://github.com/jellyfin/jellyfin-web.git",
      "commit": "35c0793ece3adbd247eab290ae1effab851f3d37",
      "tag": "v10.11.11",
      "x-checker-data": {
       "is-main-source": true,
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$",
       "versions": {
        "<": "v10.12.0"
       }
      }
     }
    ]
   },
   {
    "name": "jellyfin",
    "disabled": false,
    "buildsystem": "simple",
    "build-options": {
     "append-ld-library-path": "/usr/lib/sdk/dotnet9/lib",
     "append-path": "/usr/lib/sdk/dotnet9/bin",
     "env": {
      "DOTNET_CLI_TELEMETRY_OPTOUT": "true",
      "PKG_CONFIG_PATH": "/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/lib/sdk/dotnet9/lib/pkgconfig"
     },
     "arch": {
      "x86_64": {
       "env": {
        "RUNTIME": "linux-x64"
       }
      },
      "aarch64": {
       "env": {
        "RUNTIME": "linux-arm64"
       }
      }
     }
    },
    "build-commands": [
     "install -D jellyfin.sh $FLATPAK_DEST/bin/jellyfin.sh",
     "install -D jf-backup.sh $FLATPAK_DEST/bin/jf-backup.sh",
     "install -D jf-updater.sh $FLATPAK_DEST/bin/jf-updater.sh",
     "install -D jf-service-setup.sh $FLATPAK_DEST/bin/jf-service-setup.sh",
     "install -D -m 644 flatpak-update.service $FLATPAK_DEST/share/templates/flatpak-update.service",
     "install -D -m 644 flatpak-update.service $FLATPAK_DEST/share/templates/flatpak-update-onactive.service",
     "install -D -m 644 flatpak-update.timer $FLATPAK_DEST/share/templates/flatpak-update.timer",
     "install -D -m 644 flatpak-update-onactive.timer $FLATPAK_DEST/share/templates/flatpak-update-onactive.timer",
     "install -D -m 644 jellyfin.service $FLATPAK_DEST/share/templates/jellyfin.service",
     "install -D $FLATPAK_ID.metainfo.xml $FLATPAK_DEST/share/metainfo/$FLATPAK_ID.metainfo.xml",
     "install -D $FLATPAK_ID.desktop $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop",
     "install -D $FLATPAK_ID.svg $FLATPAK_DEST/share/icons/hicolor/scalable/apps/$FLATPAK_ID.svg",
     "mkdir -p $FLATPAK_DEST/bin",
     "mkdir -p $FLATPAK_DEST/extensions",
     "dotnet publish -c Release --source ./nuget-sources --output=\"$FLATPAK_DEST/bin\" --runtime $RUNTIME -p:DebugSymbols=false -p:DebugType=none --self-contained true Jellyfin.Server/Jellyfin.Server.csproj"
    ],
    "sources": [
     "nuget-generated-sources-x64.json",
     "nuget-generated-sources-arm64.json",
     {
      "type": "git",
      "url": "https://github.com/jellyfin/jellyfin.git",
      "commit": "1fbd8739292cce610231be93daf43368733edf63",
      "tag": "v10.11.11",
      "x-checker-data": {
       "is-main-source": true,
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$",
       "versions": {
        "<": "v10.12.0"
       }
      }
     },
     {
      "type": "file",
      "path": "org.jellyfin.JellyfinServer.metainfo.xml"
     },
     {
      "type": "file",
      "path": "data/org.jellyfin.JellyfinServer.desktop"
     },
     {
      "type": "file",
      "path": "branding/org.jellyfin.JellyfinServer.svg"
     },
     {
      "type": "file",
      "path": "data/jellyfin.sh"
     },
     {
      "type": "file",
      "path": "data/jf-backup.sh"
     },
     {
      "type": "file",
      "path": "data/jf-updater.sh"
     },
     {
      "type": "file",
      "path": "data/systemd/flatpak-update.service"
     },
     {
      "type": "file",
      "path": "data/systemd/flatpak-update.timer"
     },
     {
      "type": "file",
      "path": "data/systemd/flatpak-update-onactive.timer"
     },
     {
      "type": "file",
      "path": "data/jf-service-setup.sh"
     },
     {
      "type": "file",
      "path": "data/systemd/jellyfin.service"
     }
    ]
   }
  ]
 }
}