{
 "app_id": "io.github.noobping.keycord",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.noobping.keycord/master/io.github.noobping.keycord.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-17T16:11:51.849415+00:00",
 "manifest": {
  "id": "io.github.noobping.keycord",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable",
   "org.freedesktop.Sdk.Extension.llvm20"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin"
  },
  "command": "keycord",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland"
  ],
  "modules": [
   {
    "name": "capnproto",
    "buildsystem": "autotools",
    "subdir": "c++",
    "no-autogen": true,
    "config-opts": [
     "--disable-static"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/capnproto/capnproto.git",
      "tag": "v1.3.0",
      "commit": "7dbb95989721016f8b590245ec7528c6ff03d1fe"
     },
     {
      "type": "shell",
      "commands": [
       "cd c++ && autoreconf -fi"
      ]
     }
    ]
   },
   {
    "name": "pcsc-lite",
    "buildsystem": "meson",
    "config-opts": [
     "-Dlibsystemd=false",
     "-Dpolkit=false",
     "-Dipcdir=/run/pcscd"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/LudovicRousseau/PCSC.git",
      "tag": "2.3.3",
      "commit": "3ef55e02979de6834015b380c1d21671eeb4e9f5"
     }
    ]
   },
   {
    "name": "libcbor",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_TESTING=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/PJK/libcbor.git",
      "tag": "v0.13.0",
      "commit": "9826a4315116a588f7416912db9da6fcecd8da11"
     }
    ]
   },
   {
    "name": "libfido2",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_EXAMPLES=OFF",
     "-DBUILD_MANPAGES=OFF",
     "-DBUILD_STATIC_LIBS=OFF",
     "-DBUILD_TOOLS=OFF",
     "-DNFC_LINUX=OFF",
     "-DUSE_HIDAPI=ON"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Yubico/libfido2.git",
      "tag": "1.16.0",
      "commit": "7dc6b3c52d441c64a4235ae276a23865243395a1"
     }
    ]
   },
   {
    "name": "git",
    "buildsystem": "autotools",
    "make-args": [
     "INSTALL_SYMLINKS=1"
    ],
    "make-install-args": [
     "INSTALL_SYMLINKS=1"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://cdn.kernel.org/pub/software/scm/git/git-2.55.0.tar.xz",
      "sha256": "457fdb04dc8728e007d4688695e6912e6f680727920f2a40bf11eacc17505357",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 5350,
       "stable-only": true,
       "url-template": "https://cdn.kernel.org/pub/software/scm/git/git-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "keycord",
    "buildsystem": "simple",
    "build-options": {
     "prepend-path": "/app/bin:/usr/lib/sdk/llvm20/bin",
     "prepend-ld-library-path": "/app/lib:/usr/lib/sdk/llvm20/lib",
     "env": {
      "CLANG_PATH": "/usr/lib/sdk/llvm20/bin/clang",
      "CARGO_HOME": "/run/build/keycord/cargo",
      "LIBCLANG_PATH": "/usr/lib/sdk/llvm20/lib",
      "BINDGEN_EXTRA_CLANG_ARGS": "-resource-dir=/usr/lib/sdk/llvm20/lib/clang/20"
     }
    },
    "build-commands": [
     "sed -i '/\\[target.\\x27cfg(target_os = \"windows\")\\x27.*ependencies\\]/,/^$/d' Cargo.toml",
     "cargo --offline build --release --features flatpak",
     "install -Dm0755 target/release/keycord /app/bin/keycord",
     "install -Dm0644 data/scalable/apps/${FLATPAK_ID}.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "install -Dm0644 data/keycord-search-provider.ini /app/share/gnome-shell/search-providers/${FLATPAK_ID}.search-provider.ini",
     "install -Dm0644 data/keycord-search-provider.service /app/share/dbus-1/services/${FLATPAK_ID}.SearchProvider.service",
     "install -Dm0644 data/${FLATPAK_ID}.gschema.xml /app/share/glib-2.0/schemas/${FLATPAK_ID}.gschema.xml",
     "glib-compile-schemas /app/share/glib-2.0/schemas",
     "mkdir mo",
     "for f in po/*.po; do\n  lang=$(basename \"$f\" .po)\n  mkdir -p \"/app/share/locale/$lang/LC_MESSAGES\"\n  msgfmt \"$f\" -o \"/app/share/locale/$lang/LC_MESSAGES/keycord.mo\"\n  msgfmt \"$f\" -o \"mo/$lang.mo\"\ndone\n",
     "itstool -j data/metainfo.xml -o data/${FLATPAK_ID}.metainfo.xml mo/*.mo",
     "install -Dm0644 data/${FLATPAK_ID}.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm0644 data/keycord.desktop /app/share/applications/${FLATPAK_ID}.desktop"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/noobping/keycord.git",
      "commit": "924c9de92b526e85d15299975fb427754d65880f"
     },
     "cargo-sources.yml"
    ]
   }
  ]
 }
}