slackcat 1.6
Closes #38050. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
1488e20fc8
commit
4ecd73092b
1 changed files with 8 additions and 8 deletions
|
@ -1,8 +1,8 @@
|
||||||
class Slackcat < Formula
|
class Slackcat < Formula
|
||||||
desc "Command-line utility for posting snippets to Slack"
|
desc "Command-line utility for posting snippets to Slack"
|
||||||
homepage "https://github.com/vektorlab/slackcat"
|
homepage "https://github.com/vektorlab/slackcat"
|
||||||
url "https://github.com/vektorlab/slackcat/archive/v1.4.tar.gz"
|
url "https://github.com/vektorlab/slackcat/archive/v1.6.tar.gz"
|
||||||
sha256 "43c80b7d546bca51af47b3df8b79a2e5ce021042ea91d877e2feb33a7ca81305"
|
sha256 "e5c8f98f3048cccc3f8e49c0449435a839a18c7f12426643ac80731b63b829a9"
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
cellar :any_skip_relocation
|
cellar :any_skip_relocation
|
||||||
|
@ -13,16 +13,16 @@ class Slackcat < Formula
|
||||||
sha256 "bd75f396807917734adec3c541faebee3789841474fdd81c343c61c6a739d293" => :el_capitan
|
sha256 "bd75f396807917734adec3c541faebee3789841474fdd81c343c61c6a739d293" => :el_capitan
|
||||||
end
|
end
|
||||||
|
|
||||||
depends_on "dep" => :build
|
|
||||||
depends_on "go" => :build
|
depends_on "go" => :build
|
||||||
|
|
||||||
def install
|
def install
|
||||||
ENV["GOPATH"] = buildpath
|
ENV["GOPATH"] = buildpath
|
||||||
(buildpath/"src/github.com/vektorlab/slackcat").install buildpath.children
|
ENV["GO111MODULE"] = "on"
|
||||||
cd "src/github.com/vektorlab/slackcat" do
|
|
||||||
system "dep", "ensure", "-vendor-only"
|
src = buildpath/"src/github.com/vektorlab/slackcat"
|
||||||
system "go", "build", "-o", bin/"slackcat",
|
src.install buildpath.children
|
||||||
"-ldflags", "-X main.version=#{version}"
|
src.cd do
|
||||||
|
system "go", "build", "-o", bin/"slackcat", "-ldflags", "-X main.version=#{version}"
|
||||||
prefix.install_metafiles
|
prefix.install_metafiles
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue