aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/axel.rb
blob: 6619b11f9b848638c5e72e466cc901e93a5902b3 (plain)
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
class Axel < Formula
  homepage "https://packages.debian.org/sid/axel"
  url "https://mirrors.kernel.org/debian/pool/main/a/axel/axel_2.4.orig.tar.gz"
  mirror "http://ftp.de.debian.org/debian/pool/main/a/axel/axel_2.4.orig.tar.gz"
  sha1 "6d89a7ce797ddf4c23a210036d640d013fe843ca"

  bottle do
    sha1 "419b8e2f1f17909363fb48307eb74f9672ceb25e" => :yosemite
    sha1 "0307ac6796e0b7e5fafac6c6085d0ba5230e50e5" => :mavericks
    sha1 "22c1e32858c443a04eaec96617773e99e036bf0b" => :mountain_lion
  end

  def install
    system "./configure", "--prefix=#{prefix}", "--debug=0", "--i18n=0"
    system "make"
    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 File.exist?("axel.tar.gz")
  end
end