{
 "app_id": "org.openchemistry.Avogadro2",
 "source_url": "https://raw.githubusercontent.com/flathub/org.openchemistry.Avogadro2/master/org.openchemistry.Avogadro2.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.9",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.kde.kdeconnect"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:16:16.067818+00:00",
 "manifest": {
  "app-id": "org.openchemistry.Avogadro2",
  "runtime": "org.kde.Platform",
  "sdk": "org.kde.Sdk",
  "runtime-version": "6.9",
  "command": "avogadro2",
  "appdata-license": "BSD-3-Clause AND GPL-2.0-only",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--device=dri",
   "--share=network"
  ],
  "cleanup": [
   "/lib/cmake",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/glu/glu-9.json",
   {
    "name": "pixi",
    "buildsystem": "simple",
    "build-commands": [
     "ls -la .",
     "tar -xf pixi.tar.gz -z",
     "install -Dm755 pixi /app/bin/pixi"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/prefix-dev/pixi/releases/download/v0.56.0/pixi-x86_64-unknown-linux-musl.tar.gz",
      "sha256": "054293ee9ebd366ea51c5d5c7e63d39b7f33c0393cdf346045534b9739204234",
      "dest-filename": "pixi.tar.gz",
      "only-arches": [
       "x86_64"
      ]
     },
     {
      "type": "file",
      "url": "https://github.com/prefix-dev/pixi/releases/download/v0.56.0/pixi-aarch64-unknown-linux-musl.tar.gz",
      "sha256": "6460a1eddd310bc350ec85f17344600e5237aaaf083c091ec2e62318f5b20f97",
      "dest-filename": "pixi.tar.gz",
      "only-arches": [
       "aarch64"
      ]
     }
    ]
   },
   {
    "name": "rapidjson",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DRAPIDJSON_BUILD_DOC=OFF",
     "-DRAPIDJSON_BUILD_EXAMPLES=OFF",
     "-DRAPIDJSON_BUILD_TESTS=OFF",
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.10"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Tencent/rapidjson.git",
      "commit": "7c73dd7de7c4f14379b781418c6e947ad464c818"
     }
    ]
   },
   {
    "name": "openbabel",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DENABLE_TESTS=OFF",
     "-DBUILD_GUI=OFF",
     "-DOPTIMIZE_NATIVE=OFF",
     "-DOB_USE_PREBUILT_BINARIES=OFF",
     "-DENABLE_VERSIONED_FORMATS=OFF",
     "-DWITH_JSON=ON",
     "-DWITH_COORDGEN=OFF",
     "-DWITH_MAEPARSER=OFF",
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.10"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/openbabel/openbabel.git",
      "commit": "32cf131444c1555c749b356dab44fb9fe275271f"
     }
    ]
   },
   {
    "name": "avogadro2",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "no-make-install": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_GPL_PLUGINS=ON",
     "-DBUILD_MOLEQUEUE=OFF",
     "-DQT_VERSION=6",
     "-DDOWNLOAD_TO_SOURCE_DIR=ON",
     "-DUSE_SYSTEM_OPENBABEL=ON"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/OpenChemistry/openchemistry.git",
      "commit": "52ad62b0a7587dd54249f8c0277b87f6b824d94c",
      "disable-shallow-clone": true,
      "disable-submodules": true
     },
     {
      "type": "git",
      "url": "https://github.com/OpenChemistry/avogadroapp.git",
      "commit": "251ac788374985188f97c771c7f79882a24c32ad",
      "dest": "avogadroapp"
     },
     {
      "type": "git",
      "url": "https://github.com/OpenChemistry/avogadrolibs.git",
      "commit": "d41dbf36dd92fcf275f25bb5f3ad4063a838ed3a",
      "dest": "avogadrolibs"
     },
     {
      "type": "git",
      "url": "https://github.com/OpenChemistry/avogadro-i18n.git",
      "commit": "46c52caa5e789d4a0a38cc07b5bdacbc8643c065",
      "dest": "avogadro-i18n"
     },
     {
      "type": "git",
      "url": "https://github.com/OpenChemistry/crystals.git",
      "commit": "7adea78a682c1fa793825c85e67de531005413ff",
      "dest": "crystals"
     },
     {
      "type": "git",
      "url": "https://github.com/OpenChemistry/fragments.git",
      "commit": "2e29d17b5e998495ea89f1ab9329a28d96e3b0e5",
      "dest": "fragments"
     },
     {
      "type": "git",
      "url": "https://github.com/OpenChemistry/molecules.git",
      "commit": "8a37883ef47375247be5bbb41b538c85e131bc12",
      "dest": "molecules"
     },
     {
      "type": "git",
      "url": "https://github.com/jkriege2/JKQtPlotter.git",
      "commit": "d243218119b1632987df26baea0d4bc6ccdee533",
      "dest": "thirdparty/jkqtplotter"
     },
     {
      "type": "file",
      "url": "https://github.com/nigels-com/glew/releases/download/glew-2.2.0/glew-2.2.0.tgz",
      "sha256": "d4fc82893cfb00109578d0a1a2337fb8ca335b3ceccf97b97e5cc7f08e4353e1",
      "dest": "Downloads"
     },
     {
      "type": "file",
      "url": "https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz",
      "sha256": "8586084f71f9bde545ee7fa6d00288b264a2b7ac3607b974e54d13e7162c1c72",
      "dest": "Downloads"
     },
     {
      "type": "file",
      "url": "https://github.com/spglib/spglib/archive/v2.7.0.tar.gz",
      "sha256": "b22fc9abae9716c574fbc6d55cfc53ed654a714fccc5657a26ff5d18114bd8bd",
      "dest": "Downloads"
     },
     {
      "type": "file",
      "url": "https://github.com/libarchive/libarchive/archive/v3.8.5.tar.gz",
      "sha256": "3877c692621d8fbe9512592cf824c98c4b393525ab96735616ff628086158777",
      "dest": "Downloads"
     },
     {
      "type": "file",
      "url": "https://github.com/mcodev31/libmsym/archive/85e47232376a8e735c2a7b5283f40b59b3953db1.tar.gz",
      "sha256": "456e2c1e0c78e212115d4d332f557f108b6d41b730d5fd6639c2452df31b7096",
      "dest": "Downloads"
     }
    ],
    "post-install": [
     "cp -a prefix/bin -t ${FLATPAK_DEST}/",
     "cp -a prefix/lib -t ${FLATPAK_DEST}/",
     "cp -a prefix/lib64/* -t ${FLATPAK_DEST}/lib/",
     "ln -rs ${FLATPAK_DEST}/lib ${FLATPAK_DEST}/lib64",
     "cp -a prefix/share -t ${FLATPAK_DEST}/"
    ]
   }
  ]
 }
}