homebrew-core/Formula/known_hosts.rb

32 lines
1.6 KiB
Ruby

class KnownHosts < Formula
desc "Command-line manager for known hosts"
homepage "https://github.com/markmcconachie/known_hosts"
url "https://github.com/markmcconachie/known_hosts/archive/1.0.0.tar.gz"
sha256 "80a080aa3850af927fd332e5616eaf82e6226d904c96c6949d6034deb397ac63"
head "https://github.com/markmcconachie/known_hosts.git"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "bf3e0af3ffe33fc928ada23b36fd1549b8435234480371f678cb125ecdf3cb74"
sha256 cellar: :any_skip_relocation, big_sur: "9d89c5861e842476e98fe66ec06b418b328fa0c9d9827aba4d4063fc6c69eeb1"
sha256 cellar: :any_skip_relocation, catalina: "dcf7fb7a2fc7436eb50d0ded0dd0059f082cb6652ea107c6f37696d1fe08bd70"
sha256 cellar: :any_skip_relocation, mojave: "62e7b000f7c4ba73c10a879a8ad9c1b14e356799204de92249f1e3bdcd577359"
sha256 cellar: :any_skip_relocation, high_sierra: "8e823e73e385c7d11c19e02a0fad28751447a96332222fed825505b98e5c4003"
sha256 cellar: :any_skip_relocation, sierra: "729e8dc06654b9dae55b1f4ff15a40ee28de3642285f82deb2f67f08a031f9b2"
sha256 cellar: :any_skip_relocation, el_capitan: "b1f7982e9fb744226dcdf2be12467613ca97fa9a05f92673a4c785f6f445333c"
sha256 cellar: :any_skip_relocation, yosemite: "be8ddf7bec2c25ee2de9f84db383b56e25e45825386e6726bedbda41824c9d6a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "aa99a0432ff512031370fbb6b6bde95bd55c6180d07b099a5a3ee721576b6763"
end
depends_on "cmake" => :build
def install
system "cmake", ".", *std_cmake_args
system "make"
system "make", "install"
end
test do
system "#{bin}/known_hosts", "version"
end
end