{ "name": "elinks", "version": "0.20.0", "summary": "ELinks: a text-mode web browser with tabs, bookmarks, cookies, FTP and HTTPS (OpenSSL), and gzip, brotli, zstd, bzip2 and xz encodings", "category": "network", "license": "GPL-2.0-only", "homepage": "https://github.com/rkd77/elinks", "source": { "url": "https://github.com/rkd77/elinks/releases/download/v0.20.0/elinks-0.20.0.tar.xz", "sha256": "75af7ba88af99ff5069ec7b4b7a3241d5920f4089764c7297cff3c8484a9e33f" }, "watch": {"kind": "github-release", "repo": "rkd77/elinks", "tag_regex": "^v([0-9]+\\.[0-9]+\\.[0-9]+)$"}, "deps": [ "openssl", "zlib", "brotli", "zstd", "bzip2", "xz", "expat", "cacert" ], "env_packages": [], "static": true, "nss": true, "check": "bin/elinks -version | has -x 'ELinks 0.20.0' && t=$(mktemp -d) && printf '%s' 'bvs

BVS elinks

first second page

cell-acell-b
' > \"$t/index.html\" && HOME=$t bin/elinks -no-home -dump \"$t/index.html\" > \"$t/d\" && has 'BVS elinks' < \"$t/d\" && has 'first \\[1\\]second page' < \"$t/d\" && has 'cell-a cell-b' < \"$t/d\" && has 'two.html' < \"$t/d\" && mkdir \"$t/s\" && sed s/BVS/GZIP/ \"$t/index.html\" | gzip -c > \"$t/s/gzip\" && sed s/BVS/BROTLI/ \"$t/index.html\" | bin/brotli -c > \"$t/s/br\" && sed s/BVS/ZSTD/ \"$t/index.html\" | bin/zstd -q -c > \"$t/s/zstd\" && sed s/BVS/BZIP2/ \"$t/index.html\" | bin/bzip2 -c > \"$t/s/bzip2\" && printf '%s\\n' 'import http.server, os, sys' 'class H(http.server.BaseHTTPRequestHandler):' ' def do_GET(self):' ' enc = self.path.strip(\"/\")' ' body = open(os.path.join(sys.argv[2], enc), \"rb\").read()' ' self.send_response(200)' ' self.send_header(\"Content-Type\", \"text/html\")' ' self.send_header(\"Content-Encoding\", enc)' ' self.send_header(\"Content-Length\", str(len(body)))' ' self.end_headers()' ' self.wfile.write(body)' ' def log_message(self, *a):' ' pass' 'http.server.HTTPServer((\"127.0.0.1\", int(sys.argv[1])), H).serve_forever()' > \"$t/srv.py\" && P=$(free_port) && { python3 \"$t/srv.py\" \"$P\" \"$t/s\" < /dev/null & echo $! > \"$t/pid\"; } && wait_port \"$P\" && HOME=$t bin/elinks -no-home -dump \"http://127.0.0.1:$P/gzip\" | has 'GZIP elinks' && HOME=$t bin/elinks -no-home -dump \"http://127.0.0.1:$P/br\" | has 'BROTLI elinks' && HOME=$t bin/elinks -no-home -dump \"http://127.0.0.1:$P/zstd\" | has 'ZSTD elinks' && HOME=$t bin/elinks -no-home -dump \"http://127.0.0.1:$P/bzip2\" | has 'BZIP2 elinks' && echo \"elinks 0.20.0: a page with a link and a table dumped as text with its references; the same page over HTTP on port $P with gzip, brotli, zstd and bzip2 encodings\"; r=$?; [ -f \"$t/pid\" ] && kill \"$(cat \"$t/pid\")\" 2>/dev/null; exit $r" }