-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #196811 from matklad/kanta
kanata 1.7.0 (new formula)
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
class Kanata < Formula | ||
desc "Cross-platform software keyboard remapper for Linux, macOS and Windows" | ||
homepage "https://github.com/jtroo/kanata" | ||
url "https://github.com/jtroo/kanata/archive/refs/tags/v1.7.0.tar.gz" | ||
sha256 "eb7e11511f77558d72b5b3b0c9defb04b269637e5c8a4ad9b45d21382e9247d2" | ||
license "LGPL-3.0-only" | ||
|
||
bottle do | ||
sha256 cellar: :any_skip_relocation, arm64_sequoia: "e4f7a14dcaf0958380d869568c7e2080f81fa3f04596fb0401185ccfdd2e8b79" | ||
sha256 cellar: :any_skip_relocation, arm64_sonoma: "cd7cf9e89759f062308e6959b1e886c7ba3f538283e00e3b825418191a4146c8" | ||
sha256 cellar: :any_skip_relocation, arm64_ventura: "a66f9003045cb35e1007c11dc43b999ad4fab326329cde8bc7c38339c715ea86" | ||
sha256 cellar: :any_skip_relocation, sonoma: "80c18dc21e71b7b4d9d3751cb2863b4a9676a38cfd41afd554de7106417c713a" | ||
sha256 cellar: :any_skip_relocation, ventura: "6d3b50c939ef8a45a0b2a9a49ebd805f3d59ec4ac5028fca549e8e254db7f405" | ||
sha256 cellar: :any_skip_relocation, x86_64_linux: "b68c745a366776fd771c26f076ed63e31618d9b09556f977700e32b7e12ce2ee" | ||
end | ||
|
||
depends_on "rust" => :build | ||
|
||
def install | ||
system "cargo", "install", *std_cargo_args | ||
end | ||
|
||
test do | ||
minimal_config = <<-CFG | ||
(defsrc | ||
caps grv i | ||
j k l | ||
lsft rsft | ||
) | ||
(deflayer default | ||
@cap @grv _ | ||
_ _ _ | ||
_ _ | ||
) | ||
(deflayer arrows | ||
_ _ up | ||
left down rght | ||
_ _ | ||
) | ||
(defalias | ||
cap (tap-hold-press 200 200 caps lctl) | ||
grv (tap-hold-press 200 200 grv (layer-toggle arrows)) | ||
) | ||
CFG | ||
|
||
(testpath/"kanata.kbd").write(minimal_config) | ||
system bin/"kanata", "--check" | ||
end | ||
end |