{ "name": "units", "version": "2.27", "summary": "GNU units: converts between units of measure (3000 known units, formulas, non-linear scales such as temperatures)", "category": "tool", "license": "GPL-3.0-or-later", "homepage": "https://www.gnu.org/software/units/", "source": { "url": "https://mirrors.kernel.org/gnu/units/units-2.27.tar.gz", "sha256": "e1bbdb09672e7c08eee986749e7a1629eb84a6bdf41f5a2a79d6804444abbe10" }, "watch": {"kind": "index", "url": "https://mirrors.kernel.org/gnu/units/", "regex": "units-([0-9]+(?:\\.[0-9]+)+)\\.tar\\.gz"}, "deps": [ "readline", "ncurses" ], "env_packages": [], "static": true, "nss": true, "check": "t=$(mktemp -d) && bin/units --version > \"$t/v\" && has 'GNU Units version 2.27' < \"$t/v\" && has '^With readline' < \"$t/v\" && [ \"$(bin/units -t '1 mile' km)\" = 1.609344 ] && [ \"$(bin/units -t 'tempF(212)' tempC)\" = 100 ] && [ \"$(bin/units -t '1 kWh' MJ)\" = 3.6 ] && bin/units -t '150 min' 'hr;min' | has -x '2;30' && bin/units -t 'furlong/fortnight' 'mm/hour' | has '^598.714' && echo 'units 2.27: a mile in km, 212 F in C, a kWh in MJ, 150 minutes in hours and minutes, furlongs per fortnight'" }