{
 "app_id": "io.github.giantpinkrobots.varia",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.giantpinkrobots.varia/master/io.github.giantpinkrobots.varia.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-download",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--system-talk-name=org.freedesktop.login1"
 ],
 "module_count": 13,
 "fetched_at": "2026-09-17T16:11:10.158460+00:00",
 "manifest": {
  "id": "io.github.giantpinkrobots.varia",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "//!": "!!!!!!Also update the GNOME version in ./.github/workflows/flatpak-package.yml",
  "sdk": "org.gnome.Sdk",
  "command": "varia",
  "//": "Justifications for the permissions: This program utilizes aria2c, and aria2c requires the networking permission and the xdg-download directory in order to download files. It also has a 'shut down once all downloads are completed' feature that requires access to org.freedesktop.login1. Access to the GTK4 theme directory is required for a secret easter-egg function allowing for the usage of the Plasma color scheme.",
  "finish-args": [
   "--share=network",
   "--share=ipc",
   "--socket=fallback-x11",
   "--device=dri",
   "--socket=wayland",
   "--filesystem=xdg-download",
   "--system-talk-name=org.freedesktop.login1",
   "--talk-name=org.kde.StatusNotifierWatcher"
  ],
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm21"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm21/bin"
  },
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/man",
   "/share/doc",
   "/share/gtk-doc",
   "/share/man",
   "/share/pkgconfig",
   "*.la",
   "*.a"
  ],
  "modules": [
   {
    "name": "aria2",
    "buildsystem": "autotools",
    "config-opts": [
     "--without-libxml2",
     "--without-sqlite3",
     "--without-appletls",
     "--without-gnutls",
     "--without-libgmp",
     "--without-libnettle",
     "--without-libgcrypt",
     "--without-libssh2",
     "--without-cppunit",
     "--without-libz",
     "--without-libcunit",
     "--without-libcares",
     "--without-libaria2",
     "--disable-nls",
     "--with-openssl",
     "--disable-ftp"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0.tar.xz",
      "sha256": "60a420ad7085eb616cb6e2bdf0a7206d68ff3d37fb5a956dc44242eb2f79b66b"
     }
    ]
   },
   {
    "name": "ffmpeg",
    "config-opts": [
     "--disable-debug",
     "--disable-devices",
     "--disable-doc",
     "--disable-ffplay",
     "--disable-static",
     "--enable-gnutls",
     "--enable-libmp3lame",
     "--enable-libopus",
     "--enable-libvorbis",
     "--enable-shared"
    ],
    "cleanup": [
     "/share/ffmpeg"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/FFmpeg/FFmpeg/archive/refs/tags/n9.0.tar.gz",
      "sha256": "d97647ace36a307f17ba2bca052d68937487bed8682e1eb9b6737076a9c442b7"
     }
    ]
   },
   {
    "name": "7-zip",
    "buildsystem": "simple",
    "build-commands": [
     "for bundle in Alone2 SFXCon; do pushd CPP/7zip/Bundles/${bundle}; make -j ${FLATPAK_BUILDER_N_JOBS} -f ../../cmpl_gcc.mak; popd; done",
     "install -Dm755 CPP/7zip/Bundles/Alone2/b/g/7zz   $FLATPAK_DEST/bin/7zz"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ip7z/7zip/archive/refs/tags/26.02.zip",
      "sha256": "c7d1954793bcb3fa4367ce808181e3abb070659178d4b65c0094731631e49384"
     }
    ]
   },
   {
    "name": "deno",
    "buildsystem": "simple",
    "build-commands": [
     "unzip ./deno*",
     "install -Dm755 deno /app/bin/"
    ],
    "sources": [
     {
      "type": "file",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/denoland/deno/releases/download/v2.9.4/deno-x86_64-unknown-linux-gnu.zip",
      "sha256": "c24f955d9fbfe0ea5ae2b501c8e71ae76e31e4c9782390a54a284b3364fda725"
     },
     {
      "type": "file",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/denoland/deno/releases/download/v2.9.4/deno-aarch64-unknown-linux-gnu.zip",
      "sha256": "111da5c05c240cfdc4340f234a0e3539d39dbcb6755221f19dcd60bacc8be5aa"
     }
    ]
   },
   "./flatpak_extra_manifests/python3-aria2p.json",
   "./flatpak_extra_manifests/python3-emoji-country-flag.json",
   "./flatpak_extra_manifests/python3-dbus-next.json",
   "./shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json",
   "./flatpak_extra_manifests/python3-yt-dlp.json",
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --prefix=/app",
     "./b2 install --with-headers cxxflags='$CXXFLAGS' linkflags='$LDFLAGS' -j $FLATPAK_BUILDER_N_JOBS"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/boostorg/boost/releases/download/boost-1.90.0/boost-1.90.0-b2-nodocs.tar.xz",
      "sha256": "9e6bee9ab529fb2b0733049692d57d10a72202af085e553539a05b4204211a6f"
     }
    ]
   },
   {
    "name": "libtorrent",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DBUILD_SHARED_LIBS=OFF",
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/arvidn/libtorrent.git",
      "commit": "578e06824c3546f3371ab43967ab288a7e253eca"
     }
    ]
   },
   {
    "name": "python-libtorrent",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --no-deps --prefix=/app *.whl"
    ],
    "sources": [
     {
      "type": "file",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/arvidn/libtorrent/releases/download/v2.1.0/libtorrent-2.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
      "sha256": "1c44c20e87fc1d3000b7e149da5668192caf4a70a106d61bc60940b990de3faa"
     },
     {
      "type": "file",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/arvidn/libtorrent/releases/download/v2.1.0/libtorrent-2.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
      "sha256": "1b64f6ce69874666a795f0161727be0ac5096bf626768574f1f298f8daa886bc"
     }
    ]
   },
   {
    "name": "varia",
    "builddir": true,
    "buildsystem": "meson",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/giantpinkrobots/varia.git",
      "commit": "840cd3bd3a628a17e26a73d681be6ce31bbe4bf6"
     }
    ],
    "config-opts": [
     "--libdir=lib"
    ]
   }
  ]
 }
}