homebrew-core/Formula/annie.rb
ilovezfs bc1eb605aa annie 0.7.7
Closes #29871.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2018-07-09 00:12:51 -07:00

28 lines
961 B
Ruby

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"
bottle do
cellar :any_skip_relocation
sha256 "92cbbeed5f83219324c4c6be1da36ce11a3ba4b291be7d05848f9e6e1ee34b33" => :high_sierra
sha256 "1f43be13d37e7ae1c10e3eba6a8eb8774de054234cc9db5fa51a31fc6a81f2db" => :sierra
sha256 "f6f1233ee668fc48f12e50683087e0a1fcc97b1a7610142092e753472f91d5be" => :el_capitan
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