-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
/
Copy pathannie.rb
28 lines (24 loc) · 957 Bytes
/
annie.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Annie < Formula
desc "Fast, simple and clean video downloader"
homepage "https://github.com/iawia002/annie"
url "https://github.com/iawia002/annie/archive/0.9.4.tar.gz"
sha256 "0917116575104c104c9fd3950e73a24fd5f20e097d7eb1af4ee4e15df3016d63"
bottle do
cellar :any_skip_relocation
sha256 "f82d6002b276f26400cf5ed555d8762e1461bf8d706b0223023c74aca35e13be" => :mojave
sha256 "8270f3cd4df02c56dd4adcd9c6b9c3d9333748c50cc6fbd4d0dca6b9b3e8fb4a" => :high_sierra
sha256 "55d00a242822d3819fc63991bcfe8116a37a7e5c502e5131ba82a7144a2a85f6" => :sierra
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