{
 "app_id": "net.mediaarea.BWFMetaEdit",
 "source_url": "https://raw.githubusercontent.com/flathub/net.mediaarea.BWFMetaEdit/master/net.mediaarea.BWFMetaEdit.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--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": 2,
 "fetched_at": "2026-09-17T16:13:31.256729+00:00",
 "manifest": {
  "app-id": "net.mediaarea.BWFMetaEdit",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "add-build-extensions": {
   "org.freedesktop.Sdk.Extension.rust-stable": {
    "directory": "lib/sdk/rust-stable",
    "version": "26.08",
    "remove-after-build": true
   }
  },
  "command": "bwfmetaedit-gui",
  "rename-desktop-file": "bwfmetaedit-gui.desktop",
  "rename-appdata-file": "bwfmetaedit-gui.metainfo.xml",
  "rename-icon": "bwfmetaedit",
  "finish-args": [
   "--filesystem=host",
   "--share=network",
   "--device=dri",
   "--socket=wayland",
   "--socket=x11",
   "--share=ipc"
  ],
  "modules": [
   {
    "name": "c2pa",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/app/lib/sdk/rust-stable/bin",
     "env": {
      "CARGO_HOME": "/run/build/c2pa/cargo"
     }
    },
    "build-commands": [
     "cd Source/ThirdParty/c2pa-rs && cargo build --release --offline --locked -p c2pa-c-ffi --no-default-features --features rust_native_crypto,http,file_io",
     "install -Dm755 Source/ThirdParty/c2pa-rs/target/release/libc2pa_c.so /app/lib/libc2pa_c.so",
     "install -Dm644 Source/ThirdParty/c2pa-rs/target/release/c2pa.h /app/include/c2pa.h"
    ],
    "cleanup": [
     "/include"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://mediaarea.net/download/source/bwfmetaedit/26.08.1/bwfmetaedit_26.08.1.tar.xz",
      "sha256": "1042ab5350de813bb0f0131347089558f393c8332418b687d383be2ae0895dcf"
     },
     "cargo-sources.json"
    ]
   },
   {
    "name": "bwfmetaedit-gui",
    "subdir": "Project/QtCreator",
    "buildsystem": "qmake",
    "config-opts": [
     "ENABLE_C2PA=dynamic",
     "INCLUDEPATH+=/app/include",
     "-after",
     "target.path=/app/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://mediaarea.net/download/source/bwfmetaedit/26.08.1/bwfmetaedit_26.08.1.tar.xz",
      "sha256": "1042ab5350de813bb0f0131347089558f393c8332418b687d383be2ae0895dcf"
     },
     {
      "type": "file",
      "path": "net.mediaarea.BWFMetaEdit.metainfo.xml",
      "dest": "Project/GNU/GUI",
      "dest-filename": "bwfmetaedit-gui.metainfo.xml"
     }
    ],
    "post-install": [
     "install -D -m 0644 ../GNU/GUI/bwfmetaedit-gui.desktop -t /app/share/applications/",
     "install -D -m 0644 ../../Source/Resource/Image/Logo/Logo.png /app/share/icons/hicolor/256x256/apps/bwfmetaedit.png",
     "install -D -m 0644 ../GNU/GUI/bwfmetaedit-gui.metainfo.xml -t /app/share/appdata/"
    ]
   }
  ]
 }
}