{
 "app_id": "io.github.openenroth.openenroth",
 "source_url": "https://raw.githubusercontent.com/fpiesche/flatpak-builds/main/apps/io.github.openenroth.openenroth/io.github.openenroth.openenroth.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--device=all",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-21T13:31:52.353700+00:00",
 "manifest": {
  "app-id": "io.github.openenroth.openenroth",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "io.github.openenroth.openenroth.sh",
  "finish-args": [
   "--device=all",
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio"
  ],
  "cleanup-commands": [
   "mkdir -p ${FLATPAK_DEST}/lib/ffmpeg"
  ],
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm20"
  ],
  "add-extensions": {
   "org.freedesktop.Platform.ffmpeg-full": {
    "directory": "lib/ffmpeg",
    "add-ld-path": ".",
    "version": "25.08",
    "no-autodownload": false,
    "autodelete": false
   }
  },
  "build-options": {
   "build-args": [
    "--share=network"
   ],
   "strip": true,
   "no-debuginfo": true
  },
  "cleanup": [
   "*.a",
   "*.la",
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/man"
  ],
  "modules": [
   {
    "name": "libdwarf",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "archive",
      "url": "https://api.github.com/repos/davea42/libdwarf-code/tarball/v2.3.2",
      "dest-filename": "libdwarf.tar.gz",
      "sha256": "57005ec4f16696a44b20b7a7727fdc1d935dde532cfcd71bf323517251dced58",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/davea42/libdwarf-code/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": ".tarball_url"
      }
     }
    ],
    "cleanup": [
     "/bin/dwarfdump",
     "/share/dwarfdump"
    ]
   },
   {
    "name": "openenroth",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm20/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm20/lib"
    },
    "config-opts": [
     "-DOE_BUILD_TESTS=OFF",
     "-DOE_BUILD_TOOLS=OFF",
     "-DOE_CHECK_STYLE=OFF",
     "-DOE_CHECK_LUA_STYLE=OFF",
     "-DOE_USE_PREBUILT_DEPENDENCIES=OFF",
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_LINKER=lld"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/OpenEnroth/OpenEnroth.git",
      "commit": "b708a43944fa02955a7f320deef41ae5da88d1ce",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/openenroth/openenroth/tags",
       "commit-query": ".[] | select(.name == \"nightly\") | .commit.sha"
      }
     },
     {
      "type": "file",
      "path": "io.github.openenroth.openenroth.metainfo.xml"
     }
    ],
    "post-install": [
     "install -Dm755 src/Bin/OpenEnroth/OpenEnroth /app/bin/OpenEnroth",
     "install -Dm755 ../distribution/linux/flatpak/${FLATPAK_ID}.sh /app/bin/${FLATPAK_ID}.sh",
     "install -Dm644 ../distribution/linux/${FLATPAK_ID}.png /app/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png",
     "install -Dm644 ${FLATPAK_BUILDER_BUILDDIR}/${FLATPAK_ID}.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm644 ../distribution/linux/${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}.desktop",
     "desktop-file-edit --set-key=Exec --set-value=\"${FLATPAK_ID}.sh\" /app/share/applications/${FLATPAK_ID}.desktop"
    ]
   }
  ]
 }
}