homebrew-core/Formula/fwup.rb
2019-09-30 00:07:42 -04:00

29 lines
1.1 KiB
Ruby

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/v1.3.2/fwup-1.3.2.tar.gz"
sha256 "40ed6c6d3a93d76003491dac6c9749fc2dc13cc56aeb443f5fc7939ed4c89606"
bottle do
cellar :any
sha256 "13712afbc26bcb3c46056232e066472b9d60dcb48b96049905b631d4f08337d5" => :catalina
sha256 "b5629796fb0491f25dcfa12e99bfc53afe2da1d159882e0dce31753f5522f30b" => :mojave
sha256 "0c1dd39d731d040a77e244a1ea3affd7d5412e559e39de8ed45284741426f240" => :high_sierra
end
depends_on "pkg-config" => :build
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_predicate testpath/"fwup-key.priv", :exist?, "Failed to create fwup-key.priv!"
assert_predicate testpath/"fwup-key.pub", :exist?, "Failed to create fwup-key.pub!"
end
end