termshare 0.2.0
This commit is contained in:
parent
311e19979e
commit
0d0898ff33
1 changed files with 30 additions and 0 deletions
30
Formula/termshare.rb
Normal file
30
Formula/termshare.rb
Normal file
|
@ -0,0 +1,30 @@
|
|||
require "formula"
|
||||
|
||||
class Termshare < Formula
|
||||
homepage "https://termsha.re"
|
||||
url "https://github.com/progrium/termshare/archive/v0.2.0.tar.gz"
|
||||
sha1 "8da6f60cbcab9eee68fe9483f23338a0ca1ec196"
|
||||
|
||||
head "https://github.com/progrium/termshare.git"
|
||||
|
||||
depends_on "go" => :build
|
||||
depends_on :hg => :build
|
||||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
|
||||
# Install Go dependencies
|
||||
system "go", "get", "code.google.com/p/go.net/websocket"
|
||||
system "go", "get", "github.com/heroku/hk/term"
|
||||
system "go", "get", "github.com/kr/pty"
|
||||
system "go", "get", "github.com/nu7hatch/gouuid"
|
||||
|
||||
# Build and install termshare
|
||||
system "go", "build", "-o", "termshare"
|
||||
bin.install "termshare"
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/termshare", "-v"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue