{
 "app_id": "org.bunkus.mkvtoolnix-gui",
 "source_url": "https://raw.githubusercontent.com/flathub/org.bunkus.mkvtoolnix-gui/master/org.bunkus.mkvtoolnix-gui.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--socket=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"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-17T16:14:17.024731+00:00",
 "manifest": {
  "app-id": "org.bunkus.mkvtoolnix-gui",
  "default-branch": "stable",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "command": "mkvtoolnix",
  "rename-icon": "mkvtoolnix-gui",
  "finish-args": [
   "--socket=wayland",
   "--share=ipc",
   "--socket=x11",
   "--device=dri",
   "--socket=pulseaudio",
   "--filesystem=host"
  ],
  "cleanup": [
   "/bin/cmark",
   "/gems",
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/doc/libdvdcss/*.css",
   "/share/doc/libdvdcss/*.html",
   "/share/doc/libdvdcss/*.png",
   "/share/man",
   "*.a",
   "*.la"
  ],
  "modules": [
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --prefix=/app --with-libraries=filesystem,system",
     "./b2 -j $FLATPAK_BUILDER_N_JOBS install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/boost/files/boost/1.86.0/boost_1_86_0.tar.bz2",
      "sha256": "1bed88e40401b2cb7a1f76d4bab499e352fa4d0c5f31c0dbae64e24d34d7513b"
     }
    ]
   },
   {
    "name": "cmark",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DCMARK_STATIC=OFF"
    ],
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/commonmark/cmark/archive/refs/tags/0.31.1.tar.gz",
      "sha256": "3da93db5469c30588cfeb283d9d62edfc6ded9eb0edc10a4f5bbfb7d722ea802"
     }
    ]
   },
   {
    "name": "libdvdcss",
    "sources": [
     {
      "type": "archive",
      "url": "https://download.videolan.org/pub/libdvdcss/1.4.3/libdvdcss-1.4.3.tar.bz2",
      "sha256": "233cc92f5dc01c5d3a96f5b3582be7d5cee5a35a52d3a08158745d3d86070079"
     }
    ]
   },
   {
    "name": "libdvdread",
    "sources": [
     {
      "type": "archive",
      "url": "https://download.videolan.org/pub/videolan/libdvdread/6.1.3/libdvdread-6.1.3.tar.bz2",
      "sha256": "ce35454997a208cbe50e91232f0e73fb1ac3471965813a13b8730a8f18a15369"
     }
    ]
   },
   {
    "name": "mkvtoolnix",
    "buildsystem": "simple",
    "build-commands": [
     "./configure --enable-optimization --enable-debug --prefix=/app --with-boost=/app --with-docbook-xsl-root=/usr/share/xml/docbook/xml/xsl-stylesheets --with-qmake6=/usr/bin/qmake --disable-update-check",
     "./drake -j $FLATPAK_BUILDER_N_JOBS",
     "sed -i -Ee '/<mimetypes>/,/<.mimetypes>/d' share/metainfo/org.bunkus.mkvtoolnix-gui.metainfo.xml",
     "./drake install",
     "mkdir -p /app/share/doc/mkvtoolnix",
     "install -m0644 -t/app/share/doc/mkvtoolnix AUTHORS CODE_OF_CONDUCT.md COPYING README.md"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://mkvtoolnix.download/sources/mkvtoolnix-102.0.tar.xz",
      "sha256": "9f0a810f17c7df8adb9064a3a41d5784399be412d19704cf080745ad7d45da30"
     }
    ],
    "modules": [
     {
      "name": "ruby",
      "sources": [
       {
        "type": "archive",
        "url": "https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.7.tar.gz",
        "sha256": "23815a6d095696f7919090fdc3e2f9459b2c83d57224b2e446ce1f5f7333ef36",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 4223,
         "url-template": "https://cache.ruby-lang.org/pub/ruby/{major}.{minor}/ruby-${version}.tar.gz"
        }
       }
      ],
      "cleanup": [
       "*"
      ]
     }
    ]
   },
   {
    "name": "mkvtoolnix-wrapper",
    "buildsystem": "simple",
    "build-commands": [
     "install -m0755 entrypoint.sh /app/bin/mkvtoolnix"
    ],
    "sources": [
     {
      "type": "file",
      "path": "entrypoint.sh"
     }
    ]
   },
   {
    "name": "cmark-docs",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/share/doc/cmark",
     "install -m0644 -t/app/share/doc/cmark COPYING README.md"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://mkvtoolnix.download/sources/mkvtoolnix-102.0.tar.xz",
      "sha256": "9f0a810f17c7df8adb9064a3a41d5784399be412d19704cf080745ad7d45da30"
     }
    ]
   }
  ]
 }
}