{ "name": "aria2", "version": "1.37.0", "summary": "aria2: downloads over HTTP(S), FTP, BitTorrent and Metalink, several connections at once, with a JSON-RPC interface", "category": "network", "license": "GPL-2.0-or-later", "homepage": "https://aria2.github.io/", "source": { "url": "https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0.tar.xz", "sha256": "60a420ad7085eb616cb6e2bdf0a7206d68ff3d37fb5a956dc44242eb2f79b66b" }, "watch": {"kind": "github-release", "repo": "aria2/aria2", "tag_regex": "^release-([0-9]+(?:\\.[0-9]+)+[a-z]?[0-9]*)$"}, "deps": [ "openssl", "zlib", "sqlite", "c-ares", "expat", "libssh2" ], "env_packages": [], "static": true, "nss": true, "check": "bin/aria2c --version | first && bin/aria2c --version | has 'OpenSSL/3' && bin/aria2c --version | has 'BitTorrent' && bin/aria2c --version | has 'Metalink' && bin/aria2c --version | has 'Async DNS' && bin/aria2c --version | has 'SFTP' && bin/aria2c --version | has 'libssh2/1.11.1' && t=$(mktemp -d) && P=$(free_port) && { bin/aria2c --no-conf --enable-rpc --rpc-listen-port=\"$P\" -d \"$t\" > \"$t/rpc.log\" 2>&1 & echo $! > \"$t/pid\"; } && wait_port \"$P\" && bin/aria2c --no-conf -q -d \"$t\" -o v.json \"http://127.0.0.1:$P/jsonrpc?method=aria2.getVersion&id=bvs\" && has '\"version\":\"1.37.0\"' < \"$t/v.json\" && echo \"aria2c fetched aria2.getVersion over HTTP from its own RPC server on port $P\"; r=$?; [ -f \"$t/pid\" ] && kill \"$(cat \"$t/pid\")\" 2>/dev/null; exit $r" }