-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliae.rb
37 lines (30 loc) · 1.14 KB
/
aliae.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class Aliae < Formula
desc "Cross shell and platform alias management"
homepage "https://aliae.dev"
url "https://github.com/JanDeDobbeleer/aliae/archive/v0.24.1.tar.gz"
head "https://github.com/JanDeDobbeleer/aliae.git", branch: "main"
sha256 "5e204a321f0310562f55e3063cdddd2003b5220d03e8519eb3bc3827498a1abd"
license "MIT"
version "0.24.1"
depends_on "[email protected]" => :build
def install
Dir.chdir("src") do
ENV["GOPROXY"] = ENV.has_key?("HOMEBREW_GOPROXY") ? ENV["HOMEBREW_GOPROXY"] : ""
system("go build -o=aliae -ldflags=\"-s -w -X \'main.Version=0.24.1\'\"")
bin.install "aliae"
end
end
def caveats
<<~EOS
Thanks for installing aliae.
Have a look at https://www.aliae.dev/docs/setup/shell for detailed instructions for your shell.
If you're enjoying aliae, feel free to donate or become a sponsor.
https://github.com/sponsors/JanDeDobbeleer
In case you're looking for help, want to share how you use aliae, or find like-minded individuals, join our Discord community!
https://discord.gg/n7E3DkXssv
EOS
end
test do
system "#{bin}/aliae", "--help"
end
end