18 lines
472 B
Ruby
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
|