homebrew-core/Formula/fwup.rb

29 lines
946 B
Ruby
Raw Normal View History

class Fwup < Formula
desc "Configurable embedded Linux firmware update creator and runner"
homepage "https://github.com/fhunleth/fwup"
url "https://github.com/fhunleth/fwup/releases/download/v0.6.0/fwup-0.6.0.tar.gz"
sha256 "11d8d3a6e7464584b89d88571ee2d2dc1da758fe98525191e77982c60f35bcf3"
2015-12-01 04:14:21 +00:00
bottle do
cellar :any
2016-02-03 03:42:36 +00:00
sha256 "62f51e99e6fa6febfa1f1eb713e2e60c9b11c7572b69fb54b0e1442f70db0763" => :el_capitan
sha256 "c26a38d9ed03cd903839b22d3f86d9f6e23443092d7a75c5f4fd149815d9c8c3" => :yosemite
sha256 "18972917d65e578a7b2bf2d2a37fb9723e0bc7fce3f90b26f4c5435c50cdce50" => :mavericks
2015-12-01 04:14:21 +00:00
end
depends_on "confuse"
depends_on "libarchive"
depends_on "libsodium"
def install
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make", "install"
end
test do
system "#{bin}/fwup", "-g"
assert File.exist?("fwup-key.priv")
assert File.exist?("fwup-key.pub")
end
end