18 lines
545 B
Ruby
18 lines
545 B
Ruby
class Bkl < Formula
|
|
@@tag = "v1.0.54"
|
|
sha256 "5d8c5ca0fb8706368a4bb1c7d9caf88d62c5ee4099680e9f31281821c26be76f"
|
|
|
|
desc "Evaluates bkl configuration layer files"
|
|
homepage "https://bkl.sh"
|
|
url "https://git.bkl.sh/bkl/bkl/archive/#{@@tag}.tar.gz"
|
|
license "Apache-2.0"
|
|
head "https://git.bkl.sh/bkl/bkl.git", branch: "main"
|
|
|
|
depends_on "go" => :build
|
|
|
|
def install
|
|
ENV["CGOENABLED"] = "0"
|
|
system "go", "build", "-tags=bkl-#{@@tag},bkl-src-brew", "-trimpath", "-ldflags=-extldflags=-static", "-o", "#{bin}/", "./..."
|
|
end
|
|
end
|