Skip to content

Commit 2152cda

Browse files
authored
Merge pull request #216865 from botantony/gama
gama 1.2.1 (new formula)
2 parents bfc2430 + ec144cb commit 2152cda

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/autobump.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,7 @@ g-ls
11401140
g2o
11411141
gabo
11421142
gallery-dl
1143+
gama
11431144
gambit
11441145
game-music-emu
11451146
gammaray

Formula/g/gama.rb

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
class Gama < Formula
2+
desc "Manage your GitHub Actions from Terminal with great UI"
3+
homepage "https://github.com/termkit/gama"
4+
url "https://github.com/termkit/gama/archive/refs/tags/v1.2.1.tar.gz"
5+
sha256 "d2fad1280142b0cc8cb311a5e328590feb0c5a1642c47e3f8e0aaf1b713f6c7b"
6+
license "GPL-3.0-only"
7+
head "https://github.com/termkit/gama.git", branch: "main"
8+
9+
bottle do
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "9078cd53e0763f843729a0ffda3321354a6b664ffb2bed87e372e700cd9faef1"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "9078cd53e0763f843729a0ffda3321354a6b664ffb2bed87e372e700cd9faef1"
12+
sha256 cellar: :any_skip_relocation, arm64_ventura: "9078cd53e0763f843729a0ffda3321354a6b664ffb2bed87e372e700cd9faef1"
13+
sha256 cellar: :any_skip_relocation, sonoma: "0c8a11688f5d7cc46cfb8bdcfab4ec50a22bd17447ca4d274942270e2c671ed5"
14+
sha256 cellar: :any_skip_relocation, ventura: "0c8a11688f5d7cc46cfb8bdcfab4ec50a22bd17447ca4d274942270e2c671ed5"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "104456f00e51024a56c6e94f32e471b1288925f7cbe4a568fe73f360379566dd"
16+
end
17+
18+
depends_on "go" => :build
19+
20+
def install
21+
ldflags = "-s -w -X main.Version=#{version}"
22+
system "go", "build", *std_go_args(ldflags:)
23+
end
24+
25+
test do
26+
# gama is a TUI app
27+
#
28+
# There's no any output to stdout (except for ncurses-like UI) or a file
29+
# `gama --version` or `gama --help` are not valid options either
30+
pid = spawn bin/"gama"
31+
sleep 2
32+
ensure
33+
Process.kill("TERM", pid)
34+
Process.wait pid
35+
end
36+
end

0 commit comments

Comments
 (0)