From ea84f3efdb157fba33d49d64a287743bdae853bc Mon Sep 17 00:00:00 2001 From: Dimitris Mantzouranis Date: Tue, 6 Jun 2023 15:08:34 +0300 Subject: [PATCH] sonixflasher 1.1.0 --- Formula/sonixflasher.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Formula/sonixflasher.rb diff --git a/Formula/sonixflasher.rb b/Formula/sonixflasher.rb new file mode 100644 index 0000000..59d100c --- /dev/null +++ b/Formula/sonixflasher.rb @@ -0,0 +1,25 @@ +class Sonixflasher < Formula + desc "CLI-based Flasher for Sonix 24x/26x MCUs" + homepage "https://github.com/SonixQMK/SonixFlasherC" + url "https://github.com/SonixQMK/SonixFlasherC/archive/refs/tags/1.1.0.tar.gz" + sha256 "899beef48ca8eca0d8037794870f9f58f7cb463e3a3ddfeb2b5c446edbffbef9" + license "GPL-3.0-only" + + depends_on "pkg-config" => :build + depends_on "hidapi" + + on_linux do + depends_on "libusb" + depends_on "systemd" # for libudev + end + + def install + system "make", "clean", "sonixflasher" + bin.install "sonixflasher" + end + + test do + output = shell_output("#{bin}/sonixflasher -V 2>&1", 1) + assert_match "sonixflasher 1.1.0\n", output + end +end