{
 "app_id": "io.frama.tractor.carburetor",
 "source_url": "https://raw.githubusercontent.com/flathub/io.frama.tractor.carburetor/master/io.frama.tractor.carburetor.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "51",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-run/dconf",
  "--filesystem=~/.config/dconf:ro",
  "--talk-name=ca.desrt.dconf"
 ],
 "module_count": 9,
 "fetched_at": "2026-09-21T13:02:38.011944+00:00",
 "manifest": {
  "id": "io.frama.tractor.carburetor",
  "runtime": "org.gnome.Platform",
  "runtime-version": "51",
  "sdk": "org.gnome.Sdk",
  "command": "carburetor",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.golang"
  ],
  "add-extensions": {
   "io.frama.tractor.carburetor.pt": {
    "directory": "pts",
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": true
   },
   "io.frama.tractor.carburetor.pt.lyrebird": {
    "directory": "lyrebird",
    "bundle": true,
    "merge-dirs": "pts",
    "no-autodownload": false,
    "autodelete": true
   },
   "io.frama.tractor.carburetor.pt.snowflake": {
    "directory": "snowflake",
    "bundle": true,
    "merge-dirs": "pts",
    "no-autodownload": false,
    "autodelete": true
   },
   "io.frama.tractor.carburetor.pt.conjure": {
    "directory": "conjure",
    "bundle": true,
    "merge-dirs": "pts",
    "no-autodownload": false,
    "autodelete": true
   }
  },
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri",
   "--share=network",
   "--filesystem=xdg-run/dconf",
   "--filesystem=~/.config/dconf:ro",
   "--talk-name=ca.desrt.dconf",
   "--env=DCONF_USER_CONFIG_DIR=.config/dconf",
   "--env=GIO_EXTRA_MODULES=/app/lib/gio/modules/"
  ],
  "cleanup": [
   "*.a",
   "*.la",
   "/etc",
   "/include",
   "/lib/pkgconfig",
   "/libexec",
   "/man",
   "/share/doc",
   "/share/gtk-doc",
   "/share/man",
   "/share/pkgconfig",
   "/share/dbus-1/services/ca.desrt.dconf.service"
  ],
  "modules": [
   "python3-requirements.json",
   "lyrebird/manifest.json",
   "snowflake/manifest.json",
   "conjure/manifest.json",
   {
    "name": "libevent",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/libevent/libevent/releases/download/release-2.1.13-stable/libevent-2.1.13-stable.tar.gz",
      "sha256": "f7e9383b8c0baa81b687e5b5eecc01beefaf1b19b64151d95ed61647fe7a315c",
      "x-checker-data": {
       "type": "html",
       "url": "https://github.com/libevent/libevent/tags",
       "version-pattern": "release-([\\d.]+)-stable",
       "url-template": "https://github.com/libevent/libevent/releases/download/release-$version-stable/libevent-$version-stable.tar.gz"
      }
     }
    ]
   },
   {
    "name": "tor",
    "config-opts": [
     "--disable-module-relay",
     "--disable-asciidoc",
     "--disable-manpage",
     "--disable-html-manual",
     "--disable-unittests"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://dist.torproject.org/tor-0.4.9.12.tar.gz",
      "sha256": "c0d307c9dcdaee4848a8ca53e9d6c4ec92823e4f30be12790b0fbddfc6515f5b",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.torproject.org/download/tor/",
       "version-pattern": "<td>([\\d.]+)</td>",
       "url-template": "https://dist.torproject.org/tor-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "dconf",
    "buildsystem": "meson",
    "config-opts": [
     "-Dbash_completion=false",
     "-Dman=false",
     "-Dgtk_doc=false",
     "-Dsystemduserunitdir=/app/lib/systemd/user"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/dconf/51/dconf-51.0.tar.xz",
      "sha256": "e65c1b7867f836faad9f9ee04acf5c5a6cae2bbc784833fe093207e0cb590248",
      "x-checker-data": {
       "type": "gnome",
       "name": "dconf",
       "stable-only": true
      }
     },
     {
      "type": "patch",
      "path": "dconf-override.patch"
     }
    ]
   },
   {
    "name": "tractor",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} . --no-build-isolation",
     "install -Dm644 src/tractor/tractor.gschema.xml -t ${FLATPAK_DEST}/share/glib-2.0/schemas",
     "glib-compile-schemas ${FLATPAK_DEST}/share/glib-2.0/schemas",
     "cp ${PWD}/src/tractor/SampleBridges ${FLATPAK_DEST}/lib/python$(python -c 'import sys; print(\"%s.%s\" %sys.version_info[0:2])')/site-packages/tractor/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://framagit.org/tractor/tractor.git",
      "tag": "5.2.0",
      "commit": "61e21aae42e75f4ede8a3e3328f6c9441b310d7e",
      "x-checker-data": {
       "type": "git"
      }
     },
     {
      "type": "patch",
      "path": "pluggable-transports-paths.patch"
     }
    ]
   },
   {
    "name": "carburetor",
    "builddir": true,
    "buildsystem": "meson",
    "sources": [
     {
      "type": "git",
      "url": "https://framagit.org/tractor/carburetor.git",
      "tag": "5.1.1",
      "commit": "d74e74837117545d49776e20cc2719f4f17d605f",
      "x-checker-data": {
       "type": "git",
       "is-main-source": true
      }
     },
     {
      "type": "patch",
      "path": "add-donation-link.patch"
     }
    ],
    "post-install": [
     "mkdir -p ${FLATPAK_DEST}/pts"
    ]
   }
  ]
 }
}