29 lines
1.1 KiB
Ruby
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/v0.18.0/fwup-0.18.0.tar.gz"
|
|
sha256 "5f049d3007f278ca80cf3c6454b5c1493672f27807672ecd9928c1b5de935c5e"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "6d10d42881af956a9e8c104feedf199c9e9cb04448df726c228c7ffa74c3fc3c" => :high_sierra
|
|
sha256 "f547b1cb0afbfc5111832b6736c1c00ab5ec3899605e8fd8ca3c9fe30e7ecceb" => :sierra
|
|
sha256 "2ae77514fbba42ef40ba9174d01a3cec2abd6be8226e5737fc130f8f45d42893" => :el_capitan
|
|
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
|