36 lines
1.7 KiB
Ruby
36 lines
1.7 KiB
Ruby
class Vramsteg < Formula
|
|
desc "Add progress bars to command-line applications"
|
|
homepage "https://gothenburgbitfactory.org/projects/vramsteg.html"
|
|
url "https://gothenburgbitfactory.org/download/vramsteg-1.1.0.tar.gz"
|
|
sha256 "9cc82eb195e4673d9ee6151373746bd22513033e96411ffc1d250920801f7037"
|
|
head "https://github.com/GothenburgBitFactory/vramsteg.git", branch: "1.1.1"
|
|
|
|
livecheck do
|
|
url "https://gothenburgbitfactory.org"
|
|
regex(/href=.*?vramsteg[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "a7bc2f2c1ca7f14f5c6551f48907f9be12b623c5ebc16cd454afefe337760336"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "d004f9d2ef1b642f8128c368e57235f6d2580fd90d928da9996684430a6881ee"
|
|
sha256 cellar: :any_skip_relocation, catalina: "a6f6f99e3b12dca8a56919d1144b10e43a9059e7691d56dfdf8aab330e6febe8"
|
|
sha256 cellar: :any_skip_relocation, mojave: "a868fba582ce440a14ae18d4be193209e7d25fd3291b568bea7f123e61aa044d"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "0c9aff3582ad05a388cba8c43770ead295d921a8e419323a3c4115f09e609ba1"
|
|
sha256 cellar: :any_skip_relocation, sierra: "7f65668b7bb036fb19e69bdc9cbc2ec48728bc8c1936253f6d5e8d74a113a3fd"
|
|
sha256 cellar: :any_skip_relocation, el_capitan: "e4b3e2e66c2f772a38de529b884091a2ffa1f920af6604696129d21cc9e70b99"
|
|
sha256 cellar: :any_skip_relocation, yosemite: "9285766e0502b88c62d3d295402a41c46b8d9d2707a492bb5d70484b1080c212"
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
def install
|
|
system "cmake", ".", *std_cmake_args
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
# Check to see if vramsteg can obtain the current time as epoch
|
|
assert_match(/^\d+$/, shell_output("#{bin}/vramsteg --now"))
|
|
end
|
|
end
|