Skip to content

Commit

Permalink
aurora: remove gopath
Browse files Browse the repository at this point in the history
Closes #47641.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
  • Loading branch information
alebcay authored and chenrui333 committed Dec 10, 2019
1 parent fdd1ae0 commit 98af5c6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Formula/aurora.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@ class Aurora < Formula
depends_on "go" => :build

def install
ENV["GOPATH"] = buildpath
aurorapath = buildpath/"src/github.com/xuri/aurora"
aurorapath.install buildpath.children

cd aurorapath do
system "go", "build", "-o", bin/"aurora"
prefix.install_metafiles
end
system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"aurora"
prefix.install_metafiles
end

test do
Expand Down

0 comments on commit 98af5c6

Please sign in to comment.