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-17 14:05:55 +00:00
|
|
|
url "https://github.com/iawia002/annie/archive/0.6.6.tar.gz"
|
|
|
|
sha256 "e9b25727ad651951d04e5649271cf639c9745d0577143ba0ce15d205c4dced87"
|
2018-03-30 03:31:23 +00:00
|
|
|
|
2018-04-05 12:26:27 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2018-04-12 15:36:53 +00:00
|
|
|
sha256 "20d4b4e69e29ee24e206e1f401e4acb087878b41c3e041fcdd19e5c570cdec62" => :high_sierra
|
|
|
|
sha256 "724a233949e5376acaf209f6e2c65425e2868505e82c2410f825d83c4287b67a" => :sierra
|
|
|
|
sha256 "a97aa4fac379515b90c30e1cd2f5bdd2c25ef64ec3f81f3956856ae4ac8eb739" => :el_capitan
|
2018-04-05 12:26:27 +00:00
|
|
|
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
|