{
 "app_id": "com.ozmartians.VidCutter",
 "source_url": "https://raw.githubusercontent.com/flathub/com.ozmartians.VidCutter/master/com.ozmartians.VidCutter.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-24.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=host",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=com.canonical.Unity.LauncherEntry"
 ],
 "module_count": 20,
 "fetched_at": "2026-09-17T16:08:33.468003+00:00",
 "manifest": {
  "app-id": "com.ozmartians.VidCutter",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-24.08",
  "sdk": "org.kde.Sdk",
  "command": "vidcutter",
  "finish-args": [
   "--device=dri",
   "--env=LC_NUMERIC=C",
   "--env=LD_LIBRARY_PATH=/app/lib",
   "--filesystem=host",
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--talk-name=com.canonical.Unity.LauncherEntry"
  ],
  "cleanup": [
   "/include",
   "/lib/*.a",
   "/lib/*.la",
   "/lib/pkgconfig",
   "/share/man"
  ],
  "modules": [
   {
    "name": "PyOpenGL",
    "cleanup": [
     "/include",
     "/lib/*.a",
     "/lib/*.la",
     "/lib/pkgconfig",
     "/share"
    ],
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --prefix=${FLATPAK_DEST} ."
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.pythonhosted.org/packages/5b/01/f8fd986bc7f456f1a925ee0239f0391838ade92cdb6e5b674ffb8b86cfd6/PyOpenGL-3.1.6.tar.gz",
      "sha256": "8ea6c8773927eda7405bffc6f5bb93be81569a7b05c8cac50cd94e969dce5e27"
     }
    ]
   },
   {
    "name": "simplejson",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --prefix=${FLATPAK_DEST} ."
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.pythonhosted.org/packages/79/79/3ccb95bb4154952532f280f7a41979fbfb0fbbaee4d609810ecb01650afa/simplejson-3.19.2.tar.gz",
      "sha256": "9eb442a2442ce417801c912df68e1f6ccfcd41577ae7274953ab3ad24ef7d82c"
     }
    ]
   },
   {
    "name": "PyQt5",
    "cleanup": [
     "/bin/sip*",
     "/include",
     "/lib/python3.12/site-packages/*.pyi"
    ],
    "config-opts": [
     "--disable-static",
     "--enable-x11"
    ],
    "buildsystem": "simple",
    "build-commands": [
     "python3 configure.py --confirm-license --no-docstrings --assume-shared --no-sip-files --no-qml-plugin --no-tools --no-qsci-api -d ${FLATPAK_DEST}/lib/python3.12/site-packages --sip=${FLATPAK_DEST}/bin/sip --sip-incdir=${FLATPAK_DEST}/include --stubsdir=${FLATPAK_DEST}/lib/python3.12/site-packages --disable=QtSensors --disable=QtWebEngine --disable=QtQuick --disable=QtQml --disable=QtTest --disable=QtWebChannel --disable=QtWebEngineCore --disable=QWebEngineWidgets --disable=QtQuickWidgets --disable=QtSql --disable=QtXmlPatterns --disable=QtMultimedia --disable=QtMultimediaWidgets --disable=QtLocation --disable=QtDesigner --disable=QtOpenGL --disable=QtBluetooth --disable=QtWebKit --disable=QtWebKitWidgets --disable=QtNfc --disable=QtPositioning",
     "make -j $(nproc)",
     "make install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.pythonhosted.org/packages/8e/a4/d5e4bf99dd50134c88b95e926d7b81aad2473b47fde5e3e4eac2c69a8942/PyQt5-5.15.4.tar.gz",
      "sha256": "2a69597e0dd11caabe75fae133feca66387819fc9bc050f547e5551bce97e5be"
     }
    ],
    "modules": [
     {
      "name": "sip",
      "buildsystem": "simple",
      "build-commands": [
       "python3 configure.py --sip-module PyQt5.sip -b ${FLATPAK_DEST}/bin -d ${FLATPAK_DEST}/lib/python3.12/site-packages -e ${FLATPAK_DEST}/include -v ${FLATPAK_DEST}/share/sip --stubsdir=${FLATPAK_DEST}/lib/python3.12/site-packages",
       "make",
       "make install"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://www.riverbankcomputing.com/static/Downloads/sip/4.19.25/sip-4.19.25.tar.gz",
        "sha256": "b39d93e937647807bac23579edbff25fe46d16213f708370072574ab1f1b4211"
       },
       {
        "type": "patch",
        "path": "0001-Fix-compilation-against-Python-3.11.patch"
       }
      ]
     },
     {
      "name": "PyQt5_sip",
      "buildsystem": "simple",
      "build-commands": [
       "python3 setup.py install --prefix=${FLATPAK_DEST} --root=/"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://files.pythonhosted.org/packages/a3/82/08a09deda701feb930aa6462f2f22e07cbcb9aa7c1ef361a090221b4587e/PyQt5_sip-12.10.1.tar.gz",
        "sha256": "97e008795c453488f51a5c97dbff29cda7841afb1ca842c9e819d8e6cc0ae724"
       }
      ]
     }
    ]
   },
   {
    "name": "libmpv",
    "cleanup": [
     "/include",
     "/lib/pkgconfig"
    ],
    "buildsystem": "simple",
    "build-commands": [
     "python3 waf configure --prefix=${FLATPAK_DEST} --enable-libmpv-shared --disable-cplayer --disable-alsa --disable-manpage-build --disable-debug-build",
     "python3 waf build",
     "python3 waf install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/mpv-player/mpv/archive/v0.36.0.tar.gz",
      "sha256": "29abc44f8ebee013bb2f9fe14d80b30db19b534c679056e4851ceadf5a5e8bf6"
     },
     {
      "type": "file",
      "url": "https://waf.io/waf-2.0.26",
      "sha256": "dcec3e179f9c33a66544f1b3d7d91f20f6373530510fa6a858cddb6bfdcde14b",
      "dest-filename": "waf"
     }
    ],
    "modules": [
     {
      "name": "libass",
      "cleanup": [
       "/include",
       "/lib/*.la",
       "/lib/pkgconfig"
      ],
      "config-opts": [
       "--disable-static"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/libass/libass/releases/download/0.17.1/libass-0.17.1.tar.gz",
        "sha256": "d653be97198a0543c69111122173c41a99e0b91426f9e17f06a858982c2fb03d"
       }
      ],
      "modules": [
       {
        "name": "fribidi",
        "cleanup": [
         "/bin",
         "/include",
         "/lib/pkgconfig",
         "/lib/*.la",
         "/share/man"
        ],
        "buildsystem": "meson",
        "config-opts": [
         "--buildtype=release",
         "-Ddocs=false"
        ],
        "sources": [
         {
          "type": "git",
          "url": "https://github.com/fribidi/fribidi.git",
          "tag": "v1.0.12",
          "commit": "6428d8469e536bcbb6e12c7b79ba6659371c435a"
         }
        ]
       }
      ]
     },
     {
      "name": "ffmpeg",
      "cleanup": [
       "/include",
       "/lib/pkgconfig",
       "/share/ffmpeg/examples"
      ],
      "config-opts": [
       "--enable-shared",
       "--disable-static",
       "--disable-debug",
       "--enable-gnutls",
       "--disable-doc",
       "--disable-ffplay",
       "--enable-gpl",
       "--enable-libass",
       "--enable-libfribidi",
       "--enable-libmp3lame",
       "--enable-libpulse",
       "--enable-libtheora",
       "--enable-libvorbis",
       "--enable-libvpx",
       "--enable-libx264",
       "--enable-libx265",
       "--enable-libxvid"
      ],
      "build-options": {
       "arch": {
        "x86_64": {
         "config-opts": [
          "--enable-nvdec"
         ]
        }
       }
      },
      "sources": [
       {
        "type": "archive",
        "url": "https://ffmpeg.org/releases/ffmpeg-6.1.2.tar.xz",
        "sha256": "3b624649725ecdc565c903ca6643d41f33bd49239922e45c9b1442c63dca4e38"
       }
      ],
      "modules": [
       {
        "name": "ffnvcodec",
        "only-arches": [
         "x86_64"
        ],
        "buildsystem": "simple",
        "build-commands": [
         "make",
         "make install PREFIX=${FLATPAK_DEST}"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://github.com/FFmpeg/nv-codec-headers/releases/download/n12.1.14.0/nv-codec-headers-12.1.14.0.tar.gz",
          "sha256": "62b30ab37e4e9be0d0c5b37b8fee4b094e38e570984d56e1135a6b6c2c164c9f"
         }
        ]
       },
       {
        "name": "xvid",
        "subdir": "build/generic",
        "sources": [
         {
          "type": "archive",
          "url": "https://downloads.xvid.com/downloads/xvidcore-1.3.7.tar.gz",
          "sha256": "abbdcbd39555691dd1c9b4d08f0a031376a3b211652c0d8b3b8aa9be1303ce2d"
         }
        ]
       },
       {
        "name": "libvpx",
        "config-opts": [
         "--enable-runtime-cpu-detect",
         "--enable-shared",
         "--disable-static",
         "--enable-pic",
         "--disable-install-bins",
         "--disable-install-docs",
         "--disable-install-srcs",
         "--enable-vp8",
         "--enable-postproc",
         "--enable-vp9",
         "--enable-vp9-highbitdepth"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://github.com/webmproject/libvpx/archive/refs/tags/v1.13.1.tar.gz",
          "sha256": "00dae80465567272abd077f59355f95ac91d7809a2d3006f9ace2637dd429d14"
         }
        ]
       },
       {
        "name": "x264",
        "config-opts": [
         "--enable-shared",
         "--disable-cli",
         "--disable-lavf",
         "--enable-pic"
        ],
        "build-options": {
         "arch": {
          "aarch64": {
           "cxxflags": "-fPIC",
           "config-opts": [
            "--disable-lto"
           ]
          },
          "x86_64": {
           "config-opts": [
            "--disable-asm"
           ]
          }
         }
        },
        "post-install": [
         "ln -srf ${FLATPAK_DEST}/lib/libx264.so.* ${FLATPAK_DEST}/lib/libx264.so"
        ],
        "sources": [
         {
          "type": "git",
          "commit": "1771b556ee45207f8711744ccbd5d42a3949b14c",
          "url": "https://git.videolan.org/git/x264.git"
         }
        ]
       },
       {
        "name": "x265",
        "buildsystem": "simple",
        "build-options": {
         "arch": {
          "aarch64": {
           "cxxflags": "-fPIC"
          }
         }
        },
        "build-commands": [
         "mkdir source/build-8 source/build-10 source/build-12",
         "cd source/build-12 && cmake .. -DCMAKE_INSTALL_PREFIX=${FLATPAK_DEST} -DHIGH_BIT_DEPTH='TRUE' -DMAIN12='TRUE' -DEXPORT_C_API='FALSE' -DENABLE_CLI='FALSE' -DENABLE_SHARED='FALSE'",
         "cd source/build-12 && make",
         "cd source/build-10 && cmake .. -DCMAKE_INSTALL_PREFIX=${FLATPAK_DEST} -DHIGH_BIT_DEPTH='TRUE' -DEXPORT_C_API='FALSE' -DENABLE_CLI='FALSE' -DENABLE_SHARED='FALSE'",
         "cd source/build-10 && make",
         "ln -s ../build-10/libx265.a source/build-8/libx265_main10.a",
         "ln -s ../build-12/libx265.a source/build-8/libx265_main12.a",
         "cd source/build-8 && cmake .. -DCMAKE_INSTALL_PREFIX=${FLATPAK_DEST} -DENABLE_SHARED='TRUE' -DENABLE_CLI='FALSE' -DENABLE_HDR10_PLUS='TRUE' -DEXTRA_LIB='x265_main10.a;x265_main12.a' -DEXTRA_LINK_FLAGS='-L.' -DLINKED_10BIT='TRUE' -DLINKED_12BIT='TRUE'",
         "cd source/build-8 && make",
         "cd source/build-8 && make install"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://bitbucket.org/multicoreware/x265_git/downloads/x265_3.3.tar.gz",
          "sha256": "c6d744a87eda55560da715f56f878640554ddc06e2d0fcbd822fa330affc22cc"
         }
        ]
       },
       {
        "name": "fdkaac",
        "config-opts": [
         "--disable-static"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://github.com/mstorsjo/fdk-aac/archive/v2.0.2.tar.gz",
          "sha256": "7812b4f0cf66acda0d0fe4302545339517e702af7674dd04e5fe22a5ade16a90"
         }
        ]
       },
       {
        "name": "lame",
        "cleanup": [
         "/share/doc"
        ],
        "config-opts": [
         "--enable-shared",
         "--disable-static",
         "--disable-frontend",
         "--enable-nasm"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://downloads.sourceforge.net/lame/lame-3.100.tar.gz",
          "sha256": "ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e"
         }
        ]
       }
      ]
     }
    ]
   },
   {
    "name": "mediainfo",
    "subdir": "Project/GNU/CLI",
    "sources": [
     {
      "type": "git",
      "commit": "efdde33b336394d058fe6a75447d3cca3ac81900",
      "url": "https://github.com/MediaArea/MediaInfo.git"
     }
    ],
    "modules": [
     {
      "name": "libzen",
      "cleanup": [
       "/bin",
       "/include",
       "/lib/pkgconfig"
      ],
      "subdir": "Project/GNU/Library",
      "config-opts": [
       "--enable-shared",
       "--disable-static"
      ],
      "sources": [
       {
        "type": "git",
        "commit": "1250d326306f4036d78dfdb7b24b344e729eb9f3",
        "url": "https://github.com/MediaArea/ZenLib.git"
       }
      ]
     },
     {
      "name": "libmediainfo",
      "cleanup": [
       "/bin",
       "/include",
       "/lib/pkgconfig"
      ],
      "subdir": "Project/GNU/Library",
      "config-opts": [
       "--enable-shared",
       "--disable-static"
      ],
      "sources": [
       {
        "type": "git",
        "commit": "a475e4ee71901e0f377688024c128e1634f180e1",
        "url": "https://github.com/MediaArea/MediaInfoLib.git"
       }
      ]
     }
    ]
   },
   {
    "name": "vidcutter",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --prefix=${FLATPAK_DEST} ."
    ],
    "post-install": [
     "install -d ${FLATPAK_DEST}/share/fonts",
     "cp vidcutter/fonts/* ${FLATPAK_DEST}/share/fonts",
     "install -d ${FLATPAK_DEST}/share/icons/",
     "cp -R data/icons/hicolor ${FLATPAK_DEST}/share/icons/",
     "install -Dm644 -t ${FLATPAK_DEST}/share/applications data/desktop/com.ozmartians.VidCutter.desktop"
    ],
    "sources": [
     {
      "type": "git",
      "commit": "9233c35fa69fd766f63ab89f586fa2069c90e34d",
      "url": "https://github.com/ozmartian/vidcutter.git"
     }
    ]
   }
  ]
 }
}