Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sonixflasher formula #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Formula/sonixflasher.rb
Original file line number Diff line number Diff line change
@@ -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