Files
homebrew/Formula/bkl.rb
2024-08-19 17:45:03 -07:00

18 lines
574 B
Ruby

class Bkl < Formula
@@tag = "v1.0.39"
sha256 "8e4b602058f1deb9193542ec3c72c399ce3ddac22722075339adf43275967fe5"
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.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