{
 "app_id": "dev.edfloreshz.Calculator",
 "source_url": "https://raw.githubusercontent.com/flathub/dev.edfloreshz.Calculator/master/dev.edfloreshz.Calculator.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-config/cosmic",
  "--talk-name=com.system76.CosmicSettingsDaemon"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:09:33.910084+00:00",
 "manifest": {
  "$schema": "https://raw.githubusercontent.com/flatpak/flatpak-builder/main/data/flatpak-manifest.schema.json",
  "id": "dev.edfloreshz.Calculator",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "base": "com.system76.Cosmic.BaseApp",
  "base-version": "stable",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable",
   "org.freedesktop.Sdk.Extension.llvm20"
  ],
  "command": "cosmic-ext-calculator",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri",
   "--talk-name=com.system76.CosmicSettingsDaemon",
   "--filesystem=xdg-config/cosmic:rw"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/aclocal",
   "/share/doc",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm20/bin",
   "env": {
    "CARGO_HOME": "/run/build/calculator/cargo",
    "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER": "clang",
    "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS": "-C link-arg=-fuse-ld=/usr/lib/sdk/rust-stable/bin/mold",
    "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER": "clang",
    "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUSTFLAGS": "-C link-arg=-fuse-ld=/usr/lib/sdk/rust-stable/bin/mold"
   }
  },
  "modules": [
   {
    "name": "intltool",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "archive",
      "url": "https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz",
      "sha256": "67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd"
     }
    ]
   },
   {
    "name": "libqalculate",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Qalculate/libqalculate/releases/download/v5.7.0/libqalculate-5.7.0.tar.gz",
      "sha256": "b0aa7e7f6b729ad88f41c3562e81bdc349e072f4df0e62ce152304d979702cfe"
     }
    ]
   },
   {
    "name": "calculator",
    "buildsystem": "simple",
    "build-commands": [
     "cargo --offline build --release --verbose",
     "install -Dm0755 ./target/release/cosmic-ext-calculator -t /app/bin/",
     "install -Dm644 ./res/icons/hicolor/scalable/apps/dev.edfloreshz.Calculator.svg /app/share/icons/hicolor/scalable/apps/dev.edfloreshz.Calculator.svg",
     "install -Dm644 ./res/metainfo.xml /app/share/metainfo/dev.edfloreshz.Calculator.metainfo.xml",
     "install -Dm644 ./res/app.desktop /app/share/applications/dev.edfloreshz.Calculator.desktop"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/cosmic-utils/calculator.git",
      "commit": "ecad50ef6163bcc9c87a6c0a7d25ad6c7cc0a228"
     },
     "cargo-sources.json"
    ]
   }
  ]
 }
}