{
 "app_id": "io.github.totoshko88.RustConn",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.totoshko88.RustConn/master/io.github.totoshko88.RustConn.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=ssh-auth",
  "--socket=wayland",
  "--device=all",
  "--filesystem=~/.aws",
  "--filesystem=~/.kube:ro",
  "--filesystem=~/.ssh:ro",
  "--filesystem=~/.azure:ro",
  "--filesystem=~/.config/gcloud:ro",
  "--filesystem=xdg-download:create",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.kde.kwalletd5",
  "--talk-name=org.freedesktop.Flatpak",
  "--talk-name=org.freedesktop.secrets",
  "--talk-name=org.kde.kwalletd6",
  "--talk-name=org.keepassxc.KeePassXC.BrowserServer",
  "--unset-env=BASH_FUNC_mc%%"
 ],
 "module_count": 12,
 "fetched_at": "2026-09-21T13:13:39.912282+00:00",
 "manifest": {
  "app-id": "io.github.totoshko88.RustConn",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "rustconn",
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/lib64/pkgconfig",
   "/share/cmake",
   "/share/doc",
   "/share/info",
   "/share/man",
   "/share/pkgconfig",
   "*.la",
   "*.a"
  ],
  "finish-args": [
   "--env=LD_LIBRARY_PATH=/app/lib64:/app/lib",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--socket=pulseaudio",
   "--share=network",
   "--filesystem=home/.ssh:ro",
   "--filesystem=home/.aws",
   "--filesystem=home/.config/gcloud:ro",
   "--filesystem=home/.azure:ro",
   "--filesystem=home/.kube:ro",
   "--socket=ssh-auth",
   "--talk-name=org.freedesktop.secrets",
   "--talk-name=org.kde.kwalletd5",
   "--talk-name=org.kde.kwalletd6",
   "--talk-name=org.keepassxc.KeePassXC.BrowserServer",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--device=all",
   "--talk-name=org.freedesktop.Flatpak",
   "--filesystem=xdg-download:create",
   "--unset-env=BASH_FUNC_mc%%",
   "--env=LOCALEDIR=/app/share/rustconn/locale"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin",
   "env": {
    "CARGO_HOME": "/run/build/rustconn/cargo",
    "RUST_BACKTRACE": "1",
    "AWS_LC_SYS_CMAKE_BUILDER": "0"
   }
  },
  "modules": [
   {
    "name": "fast-float",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DFASTFLOAT_TEST=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/fastfloat/fast_float/archive/refs/tags/v8.2.10.tar.gz",
      "sha256": "76f958dd97b1cf4d8862d1f0986a47d4bdfa8845252bae15ef0f40de3b95961f"
     }
    ]
   },
   {
    "name": "vte",
    "buildsystem": "meson",
    "config-opts": [
     "-Dglade=false",
     "-Dgtk3=false",
     "-Dgtk4=true",
     "-Dvapi=false",
     "-Dicu=false",
     "-Dgir=false",
     "-Ddocs=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/vte/0.80/vte-0.80.5.tar.xz",
      "sha256": "58a4e00ab5d4a95b4be4dc57b48308deafd72d6839dbbd076648fa353321cc41",
      "x-checker-data": {
       "type": "gnome",
       "name": "vte",
       "stable-only": true,
       "versions": {
        "<": "0.81.0"
       }
      }
     }
    ]
   },
   {
    "name": "inetutils",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-servers",
     "--disable-ifconfig",
     "--disable-logger",
     "--disable-syslogd",
     "--disable-hostname",
     "--disable-traceroute",
     "--disable-talk",
     "--disable-rcp",
     "--disable-rlogin",
     "--disable-rsh",
     "--disable-rexec"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftpmirror.gnu.org/inetutils/inetutils-2.8.tar.gz",
      "mirror-urls": [
       "https://ftp.gnu.org/gnu/inetutils/inetutils-2.8.tar.gz",
       "https://mirrors.kernel.org/gnu/inetutils/inetutils-2.8.tar.gz"
      ],
      "sha256": "57b3cf4f77555992881e5ba2a09a63b05aa2c56342a60ed4305b5f45938390b5",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1579,
       "stable-only": true,
       "url-template": "https://ftpmirror.gnu.org/inetutils/inetutils-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "picocom",
    "buildsystem": "simple",
    "build-commands": [
     "make",
     "install -Dm755 picocom /app/bin/picocom"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/npat-efault/picocom/archive/refs/tags/3.1.tar.gz",
      "sha256": "e6761ca932ffc6d09bd6b11ff018bdaf70b287ce518b3282d29e0270e88420bb",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 7592,
       "stable-only": true,
       "url-template": "https://github.com/npat-efault/picocom/archive/refs/tags/$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "slang",
    "buildsystem": "autotools",
    "config-opts": [
     "--without-png",
     "--without-pcre",
     "--without-onig"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.jedsoft.org/releases/slang/slang-2.3.3.tar.bz2",
      "sha256": "f9145054ae131973c61208ea82486d5dd10e3c5cdad23b7c4a0617743c8f5a18"
     }
    ]
   },
   {
    "name": "mc",
    "buildsystem": "autotools",
    "config-opts": [
     "--with-screen=slang",
     "--disable-vfs-sftp"
    ],
    "post-install": [
     "mv /app/bin/mc /app/bin/mc.bin",
     "sed -i 's|/app/bin/mc |/app/bin/mc.bin |g' /app/libexec/mc/mc-wrapper.sh",
     "printf '%s\\n' '#!/bin/bash' 'unset -f mc 2>/dev/null' '. /app/libexec/mc/mc-wrapper.sh \"$@\"' > /app/bin/mc\n",
     "chmod 755 /app/bin/mc"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://ftp.midnight-commander.org/mc-4.8.33.tar.xz",
      "mirror-urls": [
       "https://ftp.osuosl.org/pub/midnightcommander/mc-4.8.33.tar.xz"
      ],
      "sha256": "cae149d42f844e5185d8c81d7db3913a8fa214c65f852200a9d896b468af164c",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1894,
       "stable-only": true,
       "url-template": "http://ftp.midnight-commander.org/mc-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "waypipe",
    "buildsystem": "meson",
    "config-opts": [
     "-Dbuild_rs=false",
     "-Dbuild_c=true",
     "-Dman-pages=disabled",
     "-Dtests=false",
     "-Dwith_lz4=enabled",
     "-Dwith_zstd=enabled",
     "-Dwith_dmabuf=disabled",
     "-Dwith_video=disabled"
    ],
    "post-install": [
     "ln -sf waypipe-c /app/bin/waypipe"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://gitlab.freedesktop.org/mstoeckl/waypipe/-/archive/v0.11.2/waypipe-v0.11.2.tar.gz",
      "sha256": "70914b590b2b9a74a16fe9936bb7dba6b3eb59466ed17aaba2613c9fa09b8dad"
     }
    ]
   },
   {
    "name": "rustconn-terminfo",
    "buildsystem": "simple",
    "build-commands": [
     "infocmp -x -1 xterm-256color | sed 's/xterm-256color/rustconn-256color/' | sed '/XM=/d' | tic -x -o /app/share/terminfo -",
     "printf '%s\\n' '#!/bin/sh' '# clear \u2014 minimal replacement using ANSI escape sequences' '# Clears visible screen and scrollback buffer (E3 equivalent).' 'printf \"\\033[H\\033[2J\\033[3J\"' > /app/bin/clear\n",
     "chmod 755 /app/bin/clear"
    ],
    "sources": []
   },
   {
    "name": "cjson",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DENABLE_CJSON_TEST=OFF",
     "-DENABLE_CJSON_UTILS=OFF",
     "-DBUILD_SHARED_LIBS=OFF",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/DaveGamble/cJSON/archive/refs/tags/v1.7.19.tar.gz",
      "sha256": "7fa616e3046edfa7a28a32d5f9eacfd23f92900fe1f8ccd988c1662f30454562",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 21330,
       "stable-only": true,
       "url-template": "https://github.com/DaveGamble/cJSON/archive/refs/tags/v$version.tar.gz"
      }
     }
    ],
    "cleanup": [
     "/include",
     "/lib/cmake",
     "/lib/pkgconfig",
     "*.a"
    ]
   },
   {
    "name": "freerdp",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DALLOW_IN_SOURCE_BUILD=ON",
     "-DWITH_SERVER=OFF",
     "-DWITH_SHADOW=OFF",
     "-DWITH_PROXY=OFF",
     "-DWITH_PLATFORM_SERVER=OFF",
     "-DWITH_X11=OFF",
     "-DWITH_CLIENT_SDL2=OFF",
     "-DWITH_CLIENT_SDL3=ON",
     "-DCHANNEL_URBDRC=OFF",
     "-DWITH_PULSE=ON",
     "-DWITH_ALSA=ON",
     "-DWITH_CUPS=OFF",
     "-DWITH_PCSC=OFF",
     "-DWITH_SWSCALE=OFF",
     "-DWITH_FFMPEG=OFF",
     "-DWITH_AAD=OFF",
     "-DWITH_WEBVIEW=OFF",
     "-DWITH_FUSE=OFF",
     "-DWITH_KRB5=OFF",
     "-DBUILD_TESTING=OFF",
     "-DWITH_SAMPLE=OFF",
     "-DWITH_MANPAGES=OFF",
     "-DWITH_RDTK=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://pub.freerdp.com/releases/freerdp-3.31.1.tar.xz",
      "sha256": "e679ab1400b4d3f829786782d16e318d72f4712c9d29c041a86f5cc1a2a4ec94",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 10442,
       "stable-only": true,
       "url-template": "https://pub.freerdp.com/releases/freerdp-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "openh264",
    "buildsystem": "meson",
    "config-opts": [
     "-Dtests=disabled"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/cisco/openh264/archive/refs/tags/v2.6.0.tar.gz",
      "sha256": "558544ad358283a7ab2930d69a9ceddf913f4a51ee9bf1bfb9e377322af81a69",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 15752,
       "stable-only": true,
       "url-template": "https://github.com/cisco/openh264/archive/refs/tags/v$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "rustconn",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "CARGO_NET_OFFLINE": "true",
      "PKG_CONFIG_PATH": "/app/lib64/pkgconfig:/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig"
     }
    },
    "build-commands": [
     "printf '%s\\n' '#!/bin/sh' 'case \"$*\" in' '  *jitterentropy*)' '    exec /usr/bin/cc \"$@\" -O0' '    ;;' '  *)' '    exec /usr/bin/cc \"$@\"' '    ;;' 'esac' > /app/bin/cc-wrap\nchmod +x /app/bin/cc-wrap\n",
     "if [ -f cargo/config ]; then mv cargo/config cargo/config.toml; fi",
     "CC=/app/bin/cc-wrap cargo build --release -p rustconn --features 'adw-1-8,vte-0-78,gtk-4-22'",
     "CC=/app/bin/cc-wrap cargo build --release -p rustconn-cli --features full",
     "install -Dm755 target/release/rustconn /app/bin/rustconn",
     "install -Dm755 target/release/rustconn-cli /app/bin/rustconn-cli",
     "install -Dm644 rustconn/assets/io.github.totoshko88.RustConn.desktop /app/share/applications/io.github.totoshko88.RustConn.desktop",
     "install -Dm644 rustconn/assets/io.github.totoshko88.RustConn-rdp.xml /app/share/mime/packages/io.github.totoshko88.RustConn-rdp.xml",
     "install -Dm644 rustconn/assets/io.github.totoshko88.RustConn-vv.xml /app/share/mime/packages/io.github.totoshko88.RustConn-vv.xml",
     "install -Dm644 rustconn/assets/io.github.totoshko88.RustConn.metainfo.xml /app/share/metainfo/io.github.totoshko88.RustConn.metainfo.xml",
     "install -Dm644 rustconn/assets/icons/hicolor/scalable/apps/io.github.totoshko88.RustConn.svg /app/share/icons/hicolor/scalable/apps/io.github.totoshko88.RustConn.svg",
     "for po_file in po/*.po; do\n  [ -f \"$po_file\" ] || continue\n  lang=$(basename \"$po_file\" .po)\n  mkdir -p /app/share/rustconn/locale/$lang/LC_MESSAGES\n  msgfmt -o /app/share/rustconn/locale/$lang/LC_MESSAGES/rustconn.mo \"$po_file\"\ndone\n"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/totoshko88/RustConn.git",
      "tag": "v0.22.2",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     "cargo-sources.json"
    ]
   }
  ]
 }
}