{ "name": "picocom", "version": "2024-07", "summary": "picocom: a small terminal program for serial ports (UPS, switches, boards on a USB serial adapter)", "category": "tool", "license": "GPL-2.0-or-later", "homepage": "https://gitlab.com/wsakernel/picocom", "source": { "url": "https://deb.debian.org/debian/pool/main/p/picocom/picocom_2024-07.orig.tar.xz", "sha256": "dfe5139809aab55a3edac72a6b33050c8aff689e68f7268a91dd143db0c06175" }, "watch": {"kind": "index", "url": "https://deb.debian.org/debian/pool/main/p/picocom/", "regex": "picocom_([0-9]{4}-[0-9]{2})\\.orig\\.tar\\.xz", "pin": "any"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "bin/picocom --help 2>&1 | has 'picocom v2024-07' && t=$(mktemp -d) && { python3 -c 'import os, pty, sys, time; m, s = pty.openpty(); open(sys.argv[1], \"w\").write(os.ttyname(s)); time.sleep(20)' \"$t/tty\" & echo $! > \"$t/pid\"; } && i=0 && until [ -s \"$t/tty\" ]; do [ $i -lt 50 ] || exit 1; sleep 0.1; i=$((i + 1)); done && bin/picocom --exit --baud 9600 --databits 7 --parity e --flow n \"$(cat \"$t/tty\")\" < /dev/null > \"$t/out\" 2>&1 && has 'baudrate is *: 9600' < \"$t/out\" && has 'parity is *: even' < \"$t/out\" && has 'databits are *: 7' < \"$t/out\" && echo 'picocom: opened and set up a pseudo-terminal as a serial port, 9600 7E1'; r=$?; [ -f \"$t/pid\" ] && kill \"$(cat \"$t/pid\")\" 2>/dev/null; exit $r" }