File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ class Kanata < Formula
2
+ desc "Cross-platform software keyboard remapper for Linux, macOS and Windows"
3
+ homepage "https://github.com/jtroo/kanata"
4
+ url "https://github.com/jtroo/kanata/archive/refs/tags/v1.7.0.tar.gz"
5
+ sha256 "eb7e11511f77558d72b5b3b0c9defb04b269637e5c8a4ad9b45d21382e9247d2"
6
+ license "LGPL-3.0-only"
7
+
8
+ bottle do
9
+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "e4f7a14dcaf0958380d869568c7e2080f81fa3f04596fb0401185ccfdd2e8b79"
10
+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "cd7cf9e89759f062308e6959b1e886c7ba3f538283e00e3b825418191a4146c8"
11
+ sha256 cellar : :any_skip_relocation , arm64_ventura : "a66f9003045cb35e1007c11dc43b999ad4fab326329cde8bc7c38339c715ea86"
12
+ sha256 cellar : :any_skip_relocation , sonoma : "80c18dc21e71b7b4d9d3751cb2863b4a9676a38cfd41afd554de7106417c713a"
13
+ sha256 cellar : :any_skip_relocation , ventura : "6d3b50c939ef8a45a0b2a9a49ebd805f3d59ec4ac5028fca549e8e254db7f405"
14
+ sha256 cellar : :any_skip_relocation , x86_64_linux : "b68c745a366776fd771c26f076ed63e31618d9b09556f977700e32b7e12ce2ee"
15
+ end
16
+
17
+ depends_on "rust" => :build
18
+
19
+ def install
20
+ system "cargo" , "install" , *std_cargo_args
21
+ end
22
+
23
+ test do
24
+ minimal_config = <<-CFG
25
+ (defsrc
26
+ caps grv i
27
+ j k l
28
+ lsft rsft
29
+ )
30
+
31
+ (deflayer default
32
+ @cap @grv _
33
+ _ _ _
34
+ _ _
35
+ )
36
+
37
+ (deflayer arrows
38
+ _ _ up
39
+ left down rght
40
+ _ _
41
+ )
42
+
43
+ (defalias
44
+ cap (tap-hold-press 200 200 caps lctl)
45
+ grv (tap-hold-press 200 200 grv (layer-toggle arrows))
46
+ )
47
+ CFG
48
+
49
+ ( testpath /"kanata.kbd" ) . write ( minimal_config )
50
+ system bin /"kanata" , "--check"
51
+ end
52
+ end
You can’t perform that action at this time.
0 commit comments