{
 "app_id": "tv.plex.PlexMediaPlayer",
 "source_url": "https://gitlab.com/knapsu/plex-media-player-flatpak/-/raw/master/tv.plex.PlexMediaPlayer.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--share=ipc",
  "--share=network",
  "--device=dri",
  "--filesystem=xdg-videos:ro",
  "--filesystem=xdg-music:ro",
  "--filesystem=xdg-pictures:ro",
  "--system-talk-name=org.freedesktop.login1"
 ],
 "module_count": 7,
 "fetched_at": "2026-09-18T08:10:13.913727+00:00",
 "manifest": {
  "app-id": "tv.plex.PlexMediaPlayer",
  "branch": "master",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.11",
  "sdk": "org.kde.Sdk",
  "command": "plexmediaplayer",
  "finish-args": [
   "--socket=x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--share=ipc",
   "--share=network",
   "--device=dri",
   "--filesystem=xdg-videos:ro",
   "--filesystem=xdg-music:ro",
   "--filesystem=xdg-pictures:ro",
   "--system-talk-name=org.freedesktop.login1"
  ],
  "modules": [
   {
    "name": "plex-media-player",
    "buildsystem": "cmake-ninja",
    "build-options": {
     "build-args": [
      "--share=network"
     ]
    },
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DQTROOT=/usr"
    ],
    "post-install": [
     "install -Dm644 tv.plex.PlexMediaPlayer.appdata.xml /app/share/metainfo/tv.plex.PlexMediaPlayer.appdata.xml",
     "install -Dm644 tv.plex.PlexMediaPlayer.desktop /app/share/applications/tv.plex.PlexMediaPlayer.desktop",
     "install -Dm644 resources/images/icon.png /app/share/icons/hicolor/256x256/apps/tv.plex.PlexMediaPlayer.png",
     "install -Dm644 resources/images/icon.svg /app/share/icons/hicolor/scalable/apps/tv.plex.PlexMediaPlayer.svg"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/plexinc/plex-media-player/archive/v2.26.0.947-1e21fa2b.tar.gz",
      "sha256": "56bf065df0859f3660f0cc05d7107b2a4ced327ed09a21c821dca5f9e6b3c98f"
     },
     {
      "type": "file",
      "path": "tv.plex.PlexMediaPlayer.appdata.xml"
     },
     {
      "type": "file",
      "path": "tv.plex.PlexMediaPlayer.desktop"
     }
    ],
    "modules": [
     {
      "name": "libmpv",
      "cleanup": [
       "/bin",
       "/include",
       "/lib/pkgconfig",
       "/share"
      ],
      "buildsystem": "simple",
      "build-commands": [
       "python3 waf configure --prefix=/app --enable-libmpv-shared --disable-cplayer --disable-build-date --disable-manpage-build --disable-vaapi --enable-vdpau --enable-cuda-hwaccel --enable-pulse --enable-alsa --disable-oss-audio --disable-tv",
       "python3 waf build",
       "python3 waf install"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/mpv-player/mpv/archive/v0.29.1.tar.gz",
        "sha256": "f9f9d461d1990f9728660b4ccb0e8cb5dce29ccaa6af567bec481b79291ca623"
       },
       {
        "type": "file",
        "url": "https://waf.io/waf-1.9.8",
        "sha256": "167dc42bab6d5bd823b798af195420319cb5c9b571e00db7d83df2a0fe1f4dbf",
        "dest-filename": "waf"
       }
      ],
      "modules": [
       {
        "name": "ffnvcodec",
        "buildsystem": "simple",
        "build-commands": [
         "make",
         "make install PREFIX=/app"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://github.com/FFmpeg/nv-codec-headers/releases/download/n8.2.15.6/nv-codec-headers-8.2.15.6.tar.gz",
          "sha256": "10ec7fc39ccffc08561e751a626ca2b90dfdf1a25f9dc868831fab3462629569"
         }
        ]
       },
       {
        "name": "ffmpeg",
        "cleanup": [
         "/include",
         "/lib/pkgconfig",
         "/share/ffmpeg"
        ],
        "config-opts": [
         "--enable-shared",
         "--disable-static",
         "--enable-gnutls",
         "--enable-pic",
         "--disable-doc",
         "--disable-programs",
         "--disable-encoders",
         "--disable-muxers",
         "--disable-devices",
         "--disable-vaapi",
         "--enable-vdpau",
         "--enable-cuvid"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://ffmpeg.org/releases/ffmpeg-4.0.3.tar.xz",
          "sha256": "253c37e3f1d3626a2566e496554de9a4c29050753660835909a466d66b12e2ed"
         }
        ]
       },
       {
        "name": "libass",
        "config-opts": [
         "--enable-shared",
         "--disable-static"
        ],
        "cleanup": [
         "/include",
         "/lib/*.la",
         "/lib/pkgconfig"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://github.com/libass/libass/releases/download/0.14.0/libass-0.14.0.tar.xz",
          "sha256": "881f2382af48aead75b7a0e02e65d88c5ebd369fe46bc77d9270a94aa8fd38a2"
         }
        ],
        "modules": [
         {
          "name": "fribidi",
          "cleanup": [
           "/bin",
           "/include",
           "/lib/pkgconfig",
           "/share/man"
          ],
          "sources": [
           {
            "type": "archive",
            "url": "https://github.com/fribidi/fribidi/releases/download/0.19.7/fribidi-0.19.7.tar.bz2",
            "sha256": "08222a6212bbc2276a2d55c3bf370109ae4a35b689acbc66571ad2a670595a8e"
           }
          ]
         }
        ]
       },
       {
        "name": "uchardet",
        "buildsystem": "cmake-ninja",
        "config-opts": [
         "-DCMAKE_BUILD_TYPE=Release",
         "-DBUILD_STATIC=0"
        ],
        "cleanup": [
         "/bin",
         "/include",
         "/lib/pkgconfig",
         "/share/man"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.6.tar.xz",
          "sha256": "8351328cdfbcb2432e63938721dd781eb8c11ebc56e3a89d0f84576b96002c61"
         }
        ]
       }
      ]
     }
    ]
   }
  ]
 }
}