sha2: add livecheck, update urls

master
Sam Ford 2020-11-23 22:13:11 -05:00 committed by GitHub
parent 10712cf36c
commit bc7e230ba2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -1,9 +1,14 @@
class Sha2 < Formula
desc "Implementation of SHA-256, SHA-384, and SHA-512 hash algorithms"
homepage "https://www.aarongifford.com/computers/sha.html"
url "https://www.aarongifford.com/computers/sha2-1.0.1.tgz"
homepage "https://aarongifford.com/computers/sha.html"
url "https://aarongifford.com/computers/sha2-1.0.1.tgz"
sha256 "67bc662955c6ca2fa6a0ce372c4794ec3d0cd2c1e50b124e7a75af7e23dd1d0c"
livecheck do
url :homepage
regex(/href=.*?sha2[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
cellar :any_skip_relocation
rebuild 3