mkcert.rb 493 B

123456789101112131415161718
  1. class Mkcert < Formula
  2. desc "Simple tool to make locally-trusted development certificates"
  3. homepage "https://github.com/FiloSottile/mkcert"
  4. head "https://github.com/FiloSottile/mkcert.git"
  5. depends_on "go" => :build
  6. def install
  7. ENV["GOPATH"] = buildpath
  8. mkcertpath = buildpath/"src/github.com/FiloSottile/mkcert"
  9. mkcertpath.install buildpath.children
  10. cd mkcertpath do
  11. system "go", "build", "-o", bin/"mkcert"
  12. prefix.install_metafiles
  13. end
  14. end
  15. end