18 lines
571 B
Ruby
18 lines
571 B
Ruby
class Bkl < Formula
|
|
@@tag = "v1.0.36"
|
|
sha256 "325914eb2484b9e3041f510c4412b9ab9297c47c3ee153628d1d90fc0a933676"
|
|
|
|
desc "Evaluates bkl configuration layer files"
|
|
homepage "https://bkl.gopatchy.io"
|
|
url "https://github.com/gopatchy/bkl/archive/refs/tags/#{@@tag}.tar.gz"
|
|
license "Apache-2.0"
|
|
head "https://github.com/gopatchy/bkl/", 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
|