Merge pull request #207020 from Homebrew/bump-qpdf-11.10.0
[Homebrew/homebrew-core.git] / Formula / w / wb32-dfu-updater_cli.rb
blob7531eb08d2071f11fb135bbfbbf6999197744670
1 class Wb32DfuUpdaterCli < Formula
2   desc "USB programmer for downloading and uploading firmware to/from USB devices"
3   homepage "https://github.com/WestberryTech/wb32-dfu-updater"
4   url "https://github.com/WestberryTech/wb32-dfu-updater/archive/refs/tags/1.0.0.tar.gz"
5   sha256 "2b1c5b5627723067168af9740cb25c5c179634e133e4ced06028462096de5699"
6   license "Apache-2.0"
7   head "https://github.com/WestberryTech/wb32-dfu-updater.git", branch: "master"
9   bottle do
10     sha256 cellar: :any,                 arm64_sequoia:  "ac239ddaa16c7c73763bb0e7fccf0e832ba3dde536d90115ac65fb1ac58da4eb"
11     sha256 cellar: :any,                 arm64_sonoma:   "d661a663c75316e1523b6fa0407cebda2ea86788a3fbf23ac6657af815d1c2b9"
12     sha256 cellar: :any,                 arm64_ventura:  "87370e3838ab6edf46fd33ffe58ab53222dc519d6fcf849228461d994cf0c4f2"
13     sha256 cellar: :any,                 arm64_monterey: "7e2f160501bb9541e72aaa421804bbd39036b758d76d1ba597f0e4be1146f0df"
14     sha256 cellar: :any,                 arm64_big_sur:  "7bfb9b1814a0a3d0c7e861add90ecf2957e9a5dbd16a08582ef4c9dd0eda5a75"
15     sha256 cellar: :any,                 sonoma:         "7b286ba7e7d2bd622870689fc34fe6e0903624ebb811ddbeb49139a1203d3513"
16     sha256 cellar: :any,                 ventura:        "b8580af9836f71c45a43029a65a3373e9583de4ba3d18a60fec9c686581fcd6d"
17     sha256 cellar: :any,                 monterey:       "5500f504311ae7403129ecef45590f500bdf35a5a0e89a037aaf5f661c9b1bc9"
18     sha256 cellar: :any,                 big_sur:        "ec1cb55399fe6198944db099424b96f8c6138cd309d3a9ff52d0206c5b295221"
19     sha256 cellar: :any,                 catalina:       "a9a3f5950019c27a9a022c07af2859240987d1c93acd751e741c6a320535c6e7"
20     sha256 cellar: :any_skip_relocation, x86_64_linux:   "8bd5b556320a3df8117e4215c78b24686e0d4751b80d3ebb4ed280950bf6d2e8"
21   end
23   depends_on "cmake" => :build
24   depends_on "libusb"
26   def install
27     system "cmake", "-S", ".", "-B", "build", *std_cmake_args
28     system "cmake", "--build", "build"
29     system "cmake", "--install", "build"
30   end
32   test do
33     assert_match "No DFU capable USB device available\n", shell_output(bin/"wb32-dfu-updater_cli -U 111.bin 2>&1", 74)
34   end
35 end