{
 "app_id": "io.github.tobagin.karere",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.tobagin.karere/master/io.github.tobagin.karere.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-download",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.freedesktop.Notifications"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-18T07:31:04.095695+00:00",
 "manifest": {
  "app-id": "io.github.tobagin.karere",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "karere",
  "appstream-compose": true,
  "add-extensions": {
   "io.github.tobagin.karere.Debug": {
    "directory": "lib/debug",
    "autodelete": true,
    "no-autodownload": true
   }
  },
  "cleanup": [
   "*.la",
   "*.a",
   "/include"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin",
   "env": {
    "CARGO_HOME": "/run/build/karere/cargo",
    "CARGO_NET_OFFLINE": "true",
    "CEF_PATH": "/app/lib/cef",
    "CARGO_BUILD_JOBS": "6"
   }
  },
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--device=all",
   "--filesystem=xdg-download",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--env=LD_LIBRARY_PATH=/app/lib/cef",
   "--env=GSK_RENDERER=gl"
  ],
  "modules": [
   {
    "name": "cef-binaries",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/lib/cef",
     "cp -a include libcef_dll cmake CMakeLists.txt /app/lib/cef/",
     "cp -a Release/. /app/lib/cef/",
     "cp -a Resources/. /app/lib/cef/",
     "chmod +x /app/lib/cef/chrome-sandbox || true",
     "install -Dm644 archive.json /app/lib/cef/archive.json"
    ],
    "sources": [
     {
      "type": "archive",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/tobagin/karere/releases/download/cef-152.0.6-proprietary-codecs/cef_binary_152.0.6%2Bg708dc14%2Bchromium-152.0.7977.83_linux64_minimal.zip",
      "sha256": "3d64f6fac8911a368ffa415e3ee53d002cbd792866f08ed6578dae1e252cbac8"
     },
     {
      "type": "archive",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/tobagin/karere/releases/download/cef-152.0.6-proprietary-codecs/cef_binary_152.0.6%2Bg708dc14%2Bchromium-152.0.7977.83_linuxarm64_minimal.zip",
      "sha256": "fcf2ca3fd37dbd89f8a1dc58cec2f374164eb9a7e76baa96409013368dcaa42a"
     },
     {
      "type": "inline",
      "only-arches": [
       "x86_64"
      ],
      "contents": "{\"type\":\"minimal\",\"name\":\"cef_binary_152.0.6+g708dc14+chromium-152.0.7977.83_linux64_minimal.tar.bz2\",\"sha1\":\"0000000000000000000000000000000000000000\"}\n",
      "dest-filename": "archive.json"
     },
     {
      "type": "inline",
      "only-arches": [
       "aarch64"
      ],
      "contents": "{\"type\":\"minimal\",\"name\":\"cef_binary_152.0.6+g708dc14+chromium-152.0.7977.83_linuxarm64_minimal.tar.bz2\",\"sha1\":\"0000000000000000000000000000000000000000\"}\n",
      "dest-filename": "archive.json"
     }
    ]
   },
   {
    "name": "karere",
    "buildsystem": "meson",
    "config-opts": [
     "-Dprofile=default"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/tobagin/karere",
      "tag": "v4.3.0",
      "commit": "c8b3d71833d6b858f58b73f715aefec63ed98d14"
     },
     "cargo-sources.json"
    ],
    "post-install": [
     "mkdir -p ${FLATPAK_DEST}/share/karere",
     "mv ${FLATPAK_DEST}/share/locale ${FLATPAK_DEST}/share/karere/locale"
    ]
   }
  ]
 }
}