{
 "app_id": "com.stremio.Legacy",
 "source_url": "https://raw.githubusercontent.com/Stremio/flatpak-legacy/main/com.stremio.Legacy.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-24.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--device=dri",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--persist=.stremio-server",
  "--talk-name=org.freedesktop.ScreenSaver",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--env=TMPDIR=/var/cache/tmp"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-17T17:31:50.451225+00:00",
 "manifest": {
  "app-id": "com.stremio.Legacy",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-24.08",
  "base": "io.qt.qtwebengine.BaseApp",
  "base-version": "5.15-24.08",
  "sdk": "org.kde.Sdk",
  "command": "stremio",
  "separate-locales": true,
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--device=dri",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--persist=.stremio-server",
   "--talk-name=org.freedesktop.ScreenSaver",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--env=TMPDIR=/var/cache/tmp"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/man",
   "/bin/python"
  ],
  "modules": [
   {
    "name": "nodejs",
    "buildsystem": "simple",
    "build-commands": [
     "install -D bin/node /app/bin/node"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://nodejs.org/dist/latest-v15.x/node-v15.14.0-linux-x64.tar.xz",
      "sha256": "f40a52c77a5a98203d24d6e5213c1a189bfc9736d0d9f667cb61151e9431b2a8"
     }
    ]
   },
   {
    "name": "stremio",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "build-options": {
     "env": {
      "LIBRARY_PATH": "/app/lib:/usr/lib"
     }
    },
    "post-install": [
     "install -Dm755 server.js /app/opt/stremio/server.js",
     "install -Dm644 smartcode-stremio.desktop /app/share/applications/com.stremio.Legacy.desktop",
     "desktop-file-edit --set-icon=com.stremio.Legacy /app/share/applications/com.stremio.Legacy.desktop",
     "desktop-file-edit --set-key=Exec --set-value='/app/opt/stremio/stremio %U' /app/share/applications/com.stremio.Legacy.desktop",
     "install -Dm644 ./images/stremio.svg /app/share/icons/hicolor/scalable/apps/com.stremio.Legacy.svg",
     "install -Dm644 ./images/stremio_tray_black.svg /app/share/icons/hicolor/scalable/apps/com.stremio.Legacy-symbolic.svg",
     "install -Dm644 com.stremio.Legacy.metainfo.xml /app/share/metainfo/com.stremio.Legacy.metainfo.xml",
     "ln -s /app/opt/stremio/stremio /app/bin/stremio",
     "ln -s /app/bin/node /app/opt/stremio/node",
     "ln -s /app/bin/QtWebEngineProcess /app/opt/stremio/QtWebEngineProcess"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Stremio/stremio-shell.git",
      "tag": "v4.4.168"
     },
     {
      "type": "file",
      "url": "https://dl.strem.io/server/v4.20.8/desktop/server.js",
      "sha256": "7113200f5775c958fd141bc502a808ab00ebfbb53799a13c3ab0aca84c5fb476"
     },
     {
      "type": "file",
      "path": "com.stremio.Legacy.metainfo.xml"
     }
    ],
    "modules": [
     {
      "name": "libmpv",
      "cleanup": [
       "/include",
       "/lib/pkgconfig",
       "/share/man"
      ],
      "buildsystem": "simple",
      "build-commands": [
       "python3 waf configure --prefix=/app --enable-libmpv-shared --disable-cplayer --disable-build-date --disable-alsa ",
       "python3 waf build",
       "python3 waf install"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/mpv-player/mpv/archive/v0.33.0.tar.gz",
        "sha256": "f1b9baf5dc2eeaf376597c28a6281facf6ed98ff3d567e3955c95bf2459520b4"
       },
       {
        "type": "file",
        "url": "https://waf.io/waf-2.0.27",
        "sha256": "fe10e266c05063752d098787a7b934cd0d61092c8b072884f8a679c1c596dd6a",
        "dest-filename": "waf"
       }
      ],
      "modules": [
       {
        "name": "nv-codec-headers",
        "cleanup": [
         "*"
        ],
        "no-autogen": true,
        "make-install-args": [
         "PREFIX=/app"
        ],
        "sources": [
         {
          "type": "git",
          "url": "https://git.videolan.org/git/ffmpeg/nv-codec-headers.git",
          "commit": "40e7dd3f646f303e584da1951a4840414a0ace4d"
         }
        ]
       },
       {
        "name": "ffmpeg",
        "cleanup": [
         "/include",
         "/lib/pkgconfig",
         "/share/ffmpeg/examples"
        ],
        "config-opts": [
         "--enable-shared",
         "--disable-static",
         "--enable-gnutls",
         "--disable-doc",
         "--disable-programs",
         "--disable-encoders",
         "--disable-muxers",
         "--enable-encoder=png",
         "--disable-inline-asm"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://ffmpeg.org/releases/ffmpeg-4.2.2.tar.xz",
          "sha256": "cb754255ab0ee2ea5f66f8850e1bd6ad5cac1cd855d0a2f4990fb8c668b0d29c"
         }
        ]
       },
       {
        "name": "fribidi",
        "buildsystem": "meson",
        "sources": [
         {
          "type": "archive",
          "url": "https://github.com/fribidi/fribidi/releases/download/v1.0.8/fribidi-1.0.8.tar.bz2",
          "sha256": "94c7b68d86ad2a9613b4dcffe7bbeb03523d63b5b37918bdf2e4ef34195c1e6c"
         }
        ]
       },
       {
        "name": "libass",
        "cleanup": [
         "/include",
         "/lib/*.la",
         "/lib/pkgconfig"
        ],
        "config-opts": [
         "--disable-static"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://github.com/libass/libass/releases/download/0.14.0/libass-0.14.0.tar.xz",
          "sha256": "881f2382af48aead75b7a0e02e65d88c5ebd369fe46bc77d9270a94aa8fd38a2"
         }
        ]
       },
       {
        "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"
         }
        ]
       }
      ]
     }
    ]
   }
  ]
 }
}