{
 "app_id": "dk.nikse.subtitleedit",
 "source_url": "https://raw.githubusercontent.com/SubtitleEdit/subtitleedit/main/installer/flatpak/dk.nikse.subtitleedit.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=wayland",
  "--socket=x11",
  "--device=dri",
  "--filesystem=home",
  "--filesystem=/mnt",
  "--filesystem=/media",
  "--filesystem=/run/media",
  "--filesystem=xdg-run/gvfs",
  "--share=network",
  "--socket=pulseaudio",
  "--env=DOTNET_BUNDLE_EXTRACT_BASE_DIR=/var/cache/.net"
 ],
 "module_count": 21,
 "fetched_at": "2026-09-20T13:02:25.519928+00:00",
 "manifest": {
  "app-id": "dk.nikse.subtitleedit",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.dotnet10"
  ],
  "command": "SubtitleEdit",
  "build-options": {
   "append-path": "/usr/lib/sdk/dotnet10/bin",
   "append-ld-library-path": "/app/lib:/usr/lib/sdk/dotnet10/lib",
   "no-debuginfo": true,
   "env": {
    "PKG_CONFIG_PATH": "/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/lib/sdk/dotnet10/lib/pkgconfig"
   }
  },
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=x11",
   "--device=dri",
   "--filesystem=home",
   "--filesystem=/mnt",
   "--filesystem=/media",
   "--filesystem=/run/media",
   "--filesystem=xdg-run/gvfs",
   "--share=network",
   "--socket=pulseaudio",
   "--env=DOTNET_BUNDLE_EXTRACT_BASE_DIR=/var/cache/.net"
  ],
  "cleanup": [
   "*.la",
   "*.a"
  ],
  "modules": [
   {
    "name": "harfbuzz",
    "buildsystem": "meson",
    "config-opts": [
     "-Ddocs=disabled",
     "-Dtests=disabled",
     "-Dintrospection=disabled",
     "-Dutilities=disabled",
     "-Dfreetype=enabled",
     "-Dglib=disabled",
     "-Dgobject=disabled",
     "-Dcairo=disabled",
     "-Dicu=disabled",
     "-Dgraphite2=disabled",
     "-Dc_link_args=-lstdc++"
    ],
    "cleanup": [
     "/bin",
     "/include",
     "/lib/cmake",
     "/lib/libharfbuzz-subset.so*",
     "/lib/pkgconfig/harfbuzz-subset.pc",
     "/share"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/harfbuzz/harfbuzz.git",
      "tag": "8.3.1",
      "commit": "985366b8b2a4e7e07413af918612334d6764a287"
     }
    ]
   },
   {
    "name": "libass",
    "config-opts": [
     "--disable-static",
     "--enable-asm",
     "--enable-fontconfig"
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libass/libass.git",
      "tag": "0.17.4",
      "commit": "bbb3c7f1570a4a021e52683f3fbdf74fe492ae84"
     }
    ]
   },
   {
    "name": "uchardet",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_STATIC=0",
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "cleanup": [
     "/bin",
     "/include",
     "/lib/pkgconfig",
     "/share/man"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.8.tar.xz",
      "sha256": "e97a60cfc00a1c147a674b097bb1422abd9fa78a2d9ce3f3fdcc2e78a34ac5f0"
     }
    ]
   },
   {
    "name": "libplacebo",
    "buildsystem": "meson",
    "config-opts": [
     "-Dvulkan=enabled",
     "-Dshaderc=enabled"
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/haasn/libplacebo.git",
      "tag": "v7.360.1",
      "commit": "cee9b076f2c63104ccfd497fa79c39a867293ec4"
     }
    ]
   },
   {
    "name": "rubberband",
    "buildsystem": "meson",
    "cleanup": [
     "/include",
     "/lib/pkgconfig"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/breakfastquay/rubberband.git",
      "tag": "v4.0.0",
      "commit": "1d95888bec3ae0a17c0c4af791810d5a63f6bc35"
     }
    ]
   },
   {
    "name": "mujs",
    "no-autogen": true,
    "make-args": [
     "release",
     "VERSION=1.3.8"
    ],
    "make-install-args": [
     "prefix=/app",
     "install-shared",
     "VERSION=1.3.8"
    ],
    "cleanup": [
     "/bin",
     "/include",
     "/lib/pkgconfig"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://mujs.com/downloads/mujs-1.3.8.tar.gz",
      "sha256": "506d34882f2620a2fdeb6db63dbb7a8ffd98f417689d8f3c84f2feac275e39a9"
     },
     {
      "type": "file",
      "url": "https://www.unicode.org/Public/16.0.0/ucd/UnicodeData.txt",
      "sha256": "ff58e5823bd095166564a006e47d111130813dcf8bf234ef79fa51a870edb48f"
     },
     {
      "type": "file",
      "url": "https://www.unicode.org/Public/16.0.0/ucd/SpecialCasing.txt",
      "sha256": "8d5de354eef79f2395a54c9c7dcebbaf3d30fc962d0f85611ea97aa973a0c451"
     }
    ]
   },
   {
    "name": "x264",
    "config-opts": [
     "--disable-cli",
     "--enable-shared"
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://code.videolan.org/videolan/x264.git",
      "commit": "0480cb05fa188d37ae87e8f4fd8f1aea3711f7ee"
     }
    ]
   },
   {
    "name": "ffmpeg",
    "config-opts": [
     "--disable-debug",
     "--disable-doc",
     "--disable-static",
     "--enable-shared",
     "--enable-gnutls",
     "--enable-gpl",
     "--enable-version3",
     "--enable-libass",
     "--enable-libdav1d",
     "--enable-libfreetype",
     "--enable-libmp3lame",
     "--enable-libopus",
     "--enable-librubberband",
     "--enable-libtheora",
     "--enable-libv4l2",
     "--enable-libvorbis",
     "--enable-libvpx",
     "--enable-libwebp",
     "--enable-libx264",
     "--enable-libxml2",
     "--enable-vulkan",
     "--enable-encoder=png"
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig",
     "/share/ffmpeg/examples"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/FFmpeg/FFmpeg.git",
      "tag": "n9.0",
      "commit": "5b9252abfe2fda0ccb71ed45cd7a954cc45d2b6f"
     }
    ]
   },
   {
    "name": "libXpresent",
    "buildsystem": "autotools",
    "cleanup": [
     "/include",
     "/lib/pkgconfig"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.freedesktop.org/xorg/lib/libxpresent.git",
      "tag": "libXpresent-1.0.2",
      "commit": "4d92149372461bf575e8a09b1064a2884c38c3aa"
     }
    ]
   },
   {
    "name": "hwdata",
    "buildsystem": "autotools",
    "cleanup": [
     "/include",
     "/lib/pkgconfig"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/vcrhonek/hwdata/archive/refs/tags/v0.394.tar.gz",
      "sha256": "b7c3fd7214a3b7c49d2661db127a712dc11cffd1799f793947aa1cb20aaf3298"
     }
    ]
   },
   {
    "name": "libdisplay-info",
    "buildsystem": "meson",
    "cleanup": [
     "/include",
     "/lib/pkgconfig"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://gitlab.freedesktop.org/emersion/libdisplay-info/-/archive/0.2.0/libdisplay-info-0.2.0.tar.gz",
      "sha256": "f7331fcaf5527251b84c8fb84238d06cd2f458422ce950c80e86c72927aa8c2b"
     }
    ]
   },
   {
    "name": "libmpv",
    "buildsystem": "meson",
    "config-opts": [
     "-Dlibmpv=true",
     "-Dcplayer=false",
     "-Dbuild-date=false",
     "-Dmanpage-build=disabled",
     "-Dalsa=disabled",
     "-Djavascript=enabled",
     "-Dlua=disabled",
     "-Dpulse=enabled",
     "-Duchardet=enabled",
     "-Dvulkan=enabled",
     "-Dwayland=enabled",
     "-Dx11=enabled",
     "-Ddrm=enabled",
     "-Degl=enabled",
     "-Degl-drm=enabled",
     "-Degl-wayland=enabled",
     "-Degl-x11=enabled",
     "-Dgl=enabled",
     "-Dgl-x11=enabled",
     "-Dplain-gl=enabled",
     "-Dvaapi=enabled",
     "-Dvdpau=enabled",
     "-Drubberband=enabled"
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig",
     "/share/applications",
     "/share/bash-completion",
     "/share/doc",
     "/share/icons",
     "/share/man",
     "/share/zsh"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/mpv-player/mpv.git",
      "tag": "v0.41.0",
      "commit": "41f6a645068483470267271e1d09966ca3b9f413"
     }
    ]
   },
   {
    "name": "leptonica",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_SHARED_LIBS=ON",
     "-DBUILD_PROG=OFF"
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig",
     "/lib/cmake"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/DanBloomberg/leptonica/releases/download/1.85.0/leptonica-1.85.0.tar.gz",
      "sha256": "3745ae3bf271a6801a2292eead83ac926e3a9bc1bf622e9cd4dd0f3786e17205"
     }
    ]
   },
   {
    "name": "tesseract",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_SHARED_LIBS=ON",
     "-DBUILD_TRAINING_TOOLS=OFF"
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig",
     "/lib/cmake"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/tesseract-ocr/tesseract/archive/refs/tags/5.5.1.tar.gz",
      "sha256": "a7a3f2a7420cb6a6a94d80c24163e183cf1d2f1bed2df3bbc397c81808a57237"
     }
    ]
   },
   {
    "name": "tessdata-eng",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm644 eng.traineddata /app/share/tessdata/eng.traineddata"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/tesseract-ocr/tessdata/raw/4.1.0/eng.traineddata",
      "sha256": "daa0c97d651c19fba3b25e81317cd697e9908c8208090c94c3905381c23fc047"
     }
    ]
   },
   {
    "name": "noto-cjk-fonts",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm644 NotoSansCJK-Regular.ttc /app/share/fonts/NotoSansCJK-Regular.ttc"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/notofonts/noto-cjk/f8d157532fbfaeda587e826d4cd5b21a49186f7c/Sans/OTC/NotoSansCJK-Regular.ttc",
      "sha256": "b76b0433203017ca80401b2ee0dd69350349871c4b19d504c34dbdd80541690a"
     }
    ]
   },
   {
    "name": "sevenzip",
    "buildsystem": "simple",
    "build-commands": [
     "make -C CPP/7zip/Bundles/Alone7z -f makefile.gcc",
     "install -Dm755 CPP/7zip/Bundles/Alone7z/_o/7zr /app/bin/7zr"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ip7z/7zip/releases/download/25.01/7z2501-src.tar.xz",
      "sha256": "ed087f83ee789c1ea5f39c464c55a5c9d4008deb0efe900814f2df262b82c36e",
      "strip-components": 0
     }
    ]
   },
   {
    "name": "openblas",
    "buildsystem": "simple",
    "build-commands": [
     "make DYNAMIC_ARCH=1 USE_OPENMP=1 NUM_THREADS=64 NO_STATIC=1 NO_LAPACK=1 NO_LAPACKE=1 -j $FLATPAK_BUILDER_N_JOBS",
     "make PREFIX=/app NO_STATIC=1 NO_LAPACK=1 NO_LAPACKE=1 install"
    ],
    "cleanup": [
     "/include",
     "/lib/cmake",
     "/lib/pkgconfig"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.34/OpenBLAS-0.3.34.tar.gz",
      "sha256": "cd7e129868320cc2d033afa920e31202dfe0b8066a5b66661900ccc0f197dfed"
     }
    ]
   },
   {
    "name": "libvoikko",
    "config-opts": [
     "--disable-hfst",
     "--disable-buildtools",
     "--disable-testtools",
     "--with-dictionary-path=/app/share/voikko"
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/SubtitleEdit/support-files/releases/download/voikko-4.3-fi-2024-06/libvoikko-4.3.3.tar.gz",
      "sha256": "d1162965c61de44f72162fd87ec1394bd4f90f87bc8152d13fe4ae692fdc73fa"
     }
    ]
   },
   {
    "name": "voikko-fi-dict",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/share/voikko",
     "cp -r 5 /app/share/voikko/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/SubtitleEdit/support-files/releases/download/voikko-4.3-fi-2024-06/dict.zip",
      "sha256": "98f26bb67e08288910fbf1aa92521f28bee79538ba86aefa267713333e7fa537",
      "strip-components": 0
     }
    ]
   },
   {
    "name": "subtitleedit",
    "buildsystem": "simple",
    "build-options": {
     "arch": {
      "x86_64": {
       "env": {
        "RUNTIME": "linux-x64"
       }
      },
      "aarch64": {
       "env": {
        "RUNTIME": "linux-arm64"
       }
      }
     }
    },
    "build-commands": [
     ". /usr/lib/sdk/dotnet10/enable.sh\ndotnet publish src/ui/UI.csproj \\\n  --configuration Release \\\n  --runtime \"$RUNTIME\" \\\n  --self-contained true \\\n  -p:PublishSingleFile=true \\\n  -p:RestoreLockedMode=false \\\n  -p:DebugSymbols=false \\\n  -p:DebugType=none \\\n  --source /run/build/subtitleedit/nuget-sources \\\n  -o /app/bin\n",
     "install -Dm644 installer/flatpak/dk.nikse.subtitleedit.desktop /app/share/applications/dk.nikse.subtitleedit.desktop",
     "install -Dm644 installer/flatpak/dk.nikse.subtitleedit.metainfo.xml /app/share/metainfo/dk.nikse.subtitleedit.metainfo.xml",
     "install -Dm644 src/ui/Assets/SE.png /app/share/icons/hicolor/256x256/apps/dk.nikse.subtitleedit.png",
     "install -Dm644 LICENSE /app/share/licenses/dk.nikse.subtitleedit/LICENSE"
    ],
    "sources": [
     {
      "type": "dir",
      "path": "../.."
     },
     "nuget-sources.json"
    ]
   }
  ]
 }
}