-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
/
axel.rb
46 lines (40 loc) 路 1.96 KB
/
axel.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
class Axel < Formula
desc "Light UNIX download accelerator"
homepage "https://github.com/axel-download-accelerator/axel"
url "https://github.com/axel-download-accelerator/axel/releases/download/v2.17.14/axel-2.17.14.tar.xz"
sha256 "938ee7c8c478bf6fcc82359bbf9576f298033e8b13908e53e3ea9c45c1443693"
license "GPL-2.0-or-later" => { with: "openvpn-openssl-exception" }
bottle do
sha256 cellar: :any, arm64_sonoma: "3304a247f8e410cf41737d083bb6611d74bb5991d7cec6d76b48d9ce2e944423"
sha256 cellar: :any, arm64_ventura: "0b24ce8df8e83157f4558afcb41083993d7b7aa5dbf02e06b01037a665a63ae5"
sha256 cellar: :any, arm64_monterey: "a5ac14c819bb4bc61c7f9b1c9b8211bbc14e83c9db8a3c301f58abaf822de463"
sha256 cellar: :any, sonoma: "10439c6710098fb8022d91ce619e8c459810845beee5d20f2aab33c6cf1a13df"
sha256 cellar: :any, ventura: "5ca2bc10eba04c8efaf32c380ac81f6b3da6a3a8a0dd28013a9000d06a76dd4e"
sha256 cellar: :any, monterey: "70f5c6208758d713185fe924ef3778b4a72e81c29660b495c1cdab5c2e968685"
sha256 x86_64_linux: "bf422304c452796fc7a1c020f7bf067fe1ff5eb7be4757a56b249eef815dfa9d"
end
head do
url "https://github.com/axel-download-accelerator/axel.git", branch: "master"
depends_on "autoconf" => :build
depends_on "autoconf-archive" => :build
depends_on "automake" => :build
depends_on "gawk" => :build
depends_on "txt2man" => :build
end
depends_on "pkg-config" => :build
depends_on "gettext"
depends_on "openssl@3"
def install
system "autoreconf", "--force", "--install", "--verbose" if build.head?
system "./configure", *std_configure_args,
"--disable-silent-rules",
"--sysconfdir=#{etc}"
system "make", "install"
end
test do
filename = (testpath/"axel.tar.gz")
system bin/"axel", "-o", "axel.tar.gz", stable.url
filename.verify_checksum stable.checksum
assert_predicate testpath/"axel.tar.gz", :exist?
end
end