homebrew-core/Formula/annie.rb

29 lines
961 B
Ruby
Raw Normal View History

class Annie < Formula
desc "Fast, simple and clean video downloader"
homepage "https://github.com/iawia002/annie"
url "https://github.com/iawia002/annie/archive/0.7.7.tar.gz"
sha256 "72254aa58d46c6c931e6941fc216e03cbaceddda63ab1f927695349c97b5d72a"
2018-04-05 12:26:27 +00:00
bottle do
cellar :any_skip_relocation
2018-07-08 10:14:50 +00:00
sha256 "92cbbeed5f83219324c4c6be1da36ce11a3ba4b291be7d05848f9e6e1ee34b33" => :high_sierra
sha256 "1f43be13d37e7ae1c10e3eba6a8eb8774de054234cc9db5fa51a31fc6a81f2db" => :sierra
sha256 "f6f1233ee668fc48f12e50683087e0a1fcc97b1a7610142092e753472f91d5be" => :el_capitan
2018-04-05 12:26:27 +00:00
end
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/iawia002/annie").install buildpath.children
cd "src/github.com/iawia002/annie" do
system "go", "build", "-o", bin/"annie"
prefix.install_metafiles
end
end
test do
system bin/"annie", "-i", "https://www.bilibili.com/video/av20203945"
end
end