Homebrew and usage

This commit is contained in:
Filippo Valsorda
2018-06-26 00:39:02 -04:00
parent c59b5d9d13
commit 6a3cad1731
3 changed files with 39 additions and 5 deletions

18
HomebrewFormula/mkcert.rb Normal file
View File

@@ -0,0 +1,18 @@
class Mkcert < Formula
desc "Simple tool to make locally-trusted development certificates"
homepage "https://github.com/FiloSottile/mkcert"
head "https://github.com/FiloSottile/mkcert.git"
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
mkcertpath = buildpath/"src/github.com/FiloSottile/mkcert"
mkcertpath.install buildpath.children
cd mkcertpath do
system "go", "build", "-o", bin/"mkcert"
prefix.install_metafiles
end
end
end