{
 "app_id": "sa.sy.bluerecorder",
 "source_url": "https://raw.githubusercontent.com/flathub/sa.sy.bluerecorder/master/sa.sy.bluerecorder.yaml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--socket=x11",
  "--device=dri",
  "--filesystem=home",
  "--filesystem=xdg-run/pipewire-0",
  "--talk-name=org.kde.StatusNotifierWatcher"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:17:25.431902+00:00",
 "manifest": {
  "app-id": "sa.sy.bluerecorder",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable",
   "org.freedesktop.Sdk.Extension.llvm20"
  ],
  "cleanup": [
   "/share/man",
   "/share/doc",
   "/share/gtk-doc"
  ],
  "command": "blue-recorder",
  "finish-args": [
   "--filesystem=home",
   "--share=ipc",
   "--socket=wayland",
   "--socket=x11",
   "--socket=pulseaudio",
   "--device=dri",
   "--filesystem=xdg-run/pipewire-0",
   "--talk-name=org.kde.StatusNotifierWatcher"
  ],
  "modules": [
   {
    "name": "bluerecorder",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm20/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm20/lib",
     "env": {
      "CARGO_HOME": "/run/build/bluerecorder/cargo",
      "RUST_BACKTRACE": "1"
     }
    },
    "build-commands": [
     "mkdir -p $FLATPAK_DEST/bin $FLATPAK_DEST/opt $FLATPAK_DEST/share/icons/hicolor/128x128/apps/",
     "install -D flatpak/sa.sy.bluerecorder.metainfo.xml -t $FLATPAK_DEST/share/metainfo/",
     "install -D flatpak/sa.sy.bluerecorder.desktop -t $FLATPAK_DEST/share/applications/",
     "cp -v data/blue-recorder@x128.png $FLATPAK_DEST/share/icons/hicolor/128x128/apps/sa.sy.bluerecorder.png",
     "cargo --offline fetch --manifest-path Cargo.toml --verbose",
     "cargo --offline build --release --verbose",
     "cp target/release/blue-recorder $FLATPAK_DEST/opt",
     "cp -a data gui/interfaces locales $FLATPAK_DEST/opt",
     "ln -s ../opt/blue-recorder $FLATPAK_DEST/bin/blue-recorder"
    ],
    "sources": [
     "cargo-sources.json",
     {
      "type": "git",
      "url": "https://github.com/xlmnxp/blue-recorder.git",
      "commit": "c2878fe609f3e001cd8da96974f190f8cd966202"
     }
    ]
   },
   {
    "name": "xwininfo",
    "sources": [
     {
      "type": "archive",
      "url": "https://xorg.freedesktop.org/archive/individual/app/xwininfo-1.1.5.tar.bz2",
      "sha256": "7a405441dfc476666c744f5fcd1bc8a75abf8b5b1d85db7b88b370982365080e"
     }
    ]
   },
   {
    "name": "libx264",
    "config-opts": [
     "--enable-shared",
     "--disable-cli"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://code.videolan.org/videolan/x264.git",
      "commit": "baee400fa9ced6f5481a728138fed6e867b0ff7f"
     }
    ]
   },
   {
    "name": "ffmpeg",
    "config-opts": [
     "--enable-shared",
     "--disable-static",
     "--disable-doc",
     "--disable-htmlpages",
     "--disable-manpages",
     "--disable-podpages",
     "--disable-txtpages",
     "--enable-libpulse",
     "--enable-gpl",
     "--enable-libx264",
     "--enable-version3",
     "--enable-libvorbis",
     "--enable-libopus"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://www.ffmpeg.org/releases/ffmpeg-6.0.tar.xz",
      "sha256": "57be87c22d9b49c112b6d24bc67d42508660e6b718b3db89c44e47e289137082"
     },
     {
      "type": "patch",
      "path": "Fixes-assembling-with-binutil-as-2-41.patch"
     }
    ]
   },
   {
    "name": "gst-plugin-pipewire",
    "buildsystem": "meson",
    "config-opts": [
     "-Ddocs=disabled",
     "-Djack-devel=false",
     "-Dselinux=disabled",
     "-Dsession-managers=[]",
     "-Dudevrulesdir=/app/lib/udev"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/0.3.83/pipewire-0.3.83.tar.gz",
      "sha256": "b681bbf590cd02deec41802444ba5b05fe4df3e497eaa80260d1c5f7bb830bda"
     }
    ]
   }
  ]
 }
}