{ "name": "lynx", "version": "2.9.3", "summary": "Lynx: the text web browser; also renders HTML to text (-dump) in scripts", "category": "network", "license": "GPL-2.0-only", "homepage": "https://lynx.invisible-island.net/", "source": { "url": "https://invisible-island.net/archives/lynx/tarballs/lynx2.9.3.tar.bz2", "sha256": "174b7f2866a60f3247ba75f5c7dbb10b124aede4a1359312de15f3bfebd2050f" }, "watch": {"kind": "index", "url": "https://invisible-island.net/archives/lynx/tarballs/", "regex": "lynx([0-9]+\\.[0-9]+\\.[0-9]+)\\.tar\\.bz2"}, "deps": [ "openssl", "ncurses", "zlib", "bzip2", "brotli", "zstd", "cacert" ], "env_packages": [], "static": true, "nss": true, "check": "bin/lynx -version | first && bin/lynx -version | has OpenSSL && t=$(mktemp -d) && printf 'BVS page

Lynx check

first bvs-link

\\n' > \"$t/page.html\" && HOME=$t bin/lynx -dump \"file://localhost$t/page.html\" > \"$t/out\" && has 'Lynx check' < \"$t/out\" && has 'bvs-link' < \"$t/out\" && has \"file://$t/next.html\" < \"$t/out\" && bin/openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:P-256 -nodes -keyout \"$t/k\" -out \"$t/c\" -subj /CN=localhost -days 1 2>/dev/null && P=$(free_port) && { (cd \"$t\" && exec \"$PREFIX/bin/openssl\" s_server -quiet -accept \"127.0.0.1:$P\" -cert c -key k -WWW < /dev/null) & echo $! > \"$t/pid\"; } && wait_port \"$P\" && printf 'include:%s/etc/lynx.cfg\\nFORCE_SSL_PROMPT:yes\\n' \"$PREFIX\" > \"$t/lynx.cfg\" && HOME=$t bin/lynx -cfg=\"$t/lynx.cfg\" -dump \"https://127.0.0.1:$P/page.html\" | has 'Lynx check' && echo \"lynx: a page dumped from a file and over HTTPS (port $P)\"; r=$?; [ -f \"$t/pid\" ] && kill \"$(cat \"$t/pid\")\" 2>/dev/null; exit $r" }