{ "name": "mosh", "version": "1.4.0", "summary": "mosh: the mobile shell, a remote terminal over UDP that survives roaming, sleep and lossy links, with local echo", "category": "network", "license": "GPL-3.0-or-later", "homepage": "https://mosh.org/", "source": { "url": "https://github.com/mobile-shell/mosh/releases/download/mosh-1.4.0/mosh-1.4.0.tar.gz", "sha256": "872e4b134e5df29c8933dff12350785054d2fd2839b5ae6b5587b14db1465ddd" }, "watch": {"kind": "github-release", "repo": "mobile-shell/mosh", "tag_regex": "^mosh-([0-9]+(?:\\.[0-9]+)+)$"}, "deps": [ "protobuf", "abseil-cpp", "ncurses", "zlib", "openssl", "perl" ], "env_packages": [], "static": false, "nss": true, "check": "t=$(mktemp -d) && bin/mosh-server --version 2>&1 | has 'mosh-server (mosh 1.4.0)' && bin/mosh-client --version 2>&1 | has 'mosh-client (mosh 1.4.0)' && head -1 bin/mosh | has -x \"#!$PREFIX/bin/perl\" && bin/perl -c bin/mosh 2>&1 | has 'syntax OK' && P=$(free_port) && LANG=C.UTF-8 bin/mosh-server new -i 127.0.0.1 -p \"$P\" -- sh -c 'echo bvs-mosh-ok; sleep 6' > \"$t/connect\" 2> \"$t/err\" && key=$(sed -n 's/^MOSH CONNECT [0-9]* \\(.*\\)$/\\1/p' \"$t/connect\") && [ -n \"$key\" ] && MOSH_KEY=$key LANG=C.UTF-8 tui_screen 3 bin/mosh-client 127.0.0.1 \"$P\" > \"$t/screen\" && has 'bvs-mosh-ok' < \"$t/screen\" && echo \"mosh 1.4.0: mosh-server started a command on UDP port $P, mosh-client connected with its key and drew the command's output\"; r=$?; pid=$(sed -n 's/.*detached, pid = \\([0-9]*\\).*/\\1/p' \"$t/err\"); [ -n \"$pid\" ] && kill \"$pid\" 2>/dev/null; exit $r" }