2018-03-30 03:31:23 +00:00
|
|
|
class Annie < Formula
|
|
|
|
desc "Fast, simple and clean video downloader"
|
|
|
|
homepage "https://github.com/iawia002/annie"
|
2018-04-12 15:30:30 +00:00
|
|
|
url "https://github.com/iawia002/annie/archive/0.6.5.tar.gz"
|
|
|
|
sha256 "9f6029d9c372a174d372913ab3e856eb73075602baa956520e78639b0e151e5a"
|
2018-03-30 03:31:23 +00:00
|
|
|
|
2018-04-05 12:26:27 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "6c6f9a2806fda9385ea83f94a0f6923b6a6e8fd87d1857db49d8e6af0ce40b5d" => :high_sierra
|
|
|
|
sha256 "c5edf4ebb40b059ab45269394cbea65ea35d820cd20516b3dc728fadee2b60d7" => :sierra
|
|
|
|
sha256 "bcee207730d4e8f5b9810dcb316991bb30ffc27447bd53b088f2440ab2be0927" => :el_capitan
|
|
|
|
end
|
|
|
|
|
2018-03-30 03:31:23 +00:00
|
|
|
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
|