homebrew-core/Formula/git-number.rb

28 lines
1.5 KiB
Ruby

class GitNumber < Formula
desc "Use numbers for dealing with files in git"
homepage "https://github.com/holygeek/git-number"
url "https://github.com/holygeek/git-number/archive/1.0.1.tar.gz"
sha256 "1b9e691bd2c16321a8b83b65f2393af1707ece77e05dab73b14b04f51e9f9a56"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "f357699b108c2e521721c7a8a93ee188a526b47a5f1af7841cf005d2d1008f4f"
sha256 cellar: :any_skip_relocation, big_sur: "ca7a48d9827be6cc0d625891e25b7b7b7474d9c33a276955ab3f0eb14b8cb21b"
sha256 cellar: :any_skip_relocation, catalina: "662840b36a99f95902aee618faed6274d2cf9c6620b9c01855377d85d838eaad"
sha256 cellar: :any_skip_relocation, mojave: "2fc24b4bb5404f85fb6c359ac9b8c969846953176d8a01176c4e6ddba3067bc9"
sha256 cellar: :any_skip_relocation, high_sierra: "d71548120a8d5d9db4b9b9ae71be947303c6a415e35380d0d8e36551765b827f"
sha256 cellar: :any_skip_relocation, sierra: "d71548120a8d5d9db4b9b9ae71be947303c6a415e35380d0d8e36551765b827f"
sha256 cellar: :any_skip_relocation, el_capitan: "d71548120a8d5d9db4b9b9ae71be947303c6a415e35380d0d8e36551765b827f"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e8bca68db296e388c3290a4c805720e710e74b38482db38cebc1d3c78c96b924"
sha256 cellar: :any_skip_relocation, all: "1011ad9c6d355f7f15a1b983d2dbd70ad42adac7c2a50d064385dc115395af4c"
end
def install
system "make", "test"
system "make", "prefix=#{prefix}", "install"
end
test do
system "#{bin}/git-number", "-v"
end
end