Files
gorush/HomebrewFormula/gorush.rb
Bo-Yi Wu 5d5127b690 feat: support install from homebrew (#360)
* feat: support install from homebrew

* docs: add readme.
2018-06-27 09:28:27 +08:00

18 lines
472 B
Ruby

class Gorush < Formula
desc "A push notification server written in Go (Golang)."
homepage "https://github.com/appleboy/gorush"
head "https://github.com/appleboy/gorush.git"
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
gorushpath = buildpath/"src/github.com/appleboy/gorush"
gorushpath.install buildpath.children
cd gorushpath do
system "go", "build", "-o", bin/"gorush"
prefix.install_metafiles
end
end
end