homebrew-core/Formula/getxbook.rb
2019-10-15 13:44:43 +02:00

26 lines
911 B
Ruby

class Getxbook < Formula
desc "Tools to download ebooks from various sources"
homepage "https://njw.name/getxbook"
url "https://njw.name/getxbook/getxbook-1.2.tar.xz"
sha256 "7a4b1636ecb6dace814b818d9ff6a68167799b81ac6fc4dca1485efd48cf1c46"
revision 1
bottle do
cellar :any
sha256 "a99745b1db4509b84e84c0306bdf4439086670e608e7ff7e4d89e5318547391b" => :catalina
sha256 "68f7f76c607807315d1e8305830eaa94d04e1c87f1ea1382fb00bd7ec74f2886" => :mojave
sha256 "dce13d6e7d9f5f0eb79064858dca9dc3d62b274ba1f07b2ceaca3bf06e4effed" => :high_sierra
sha256 "d4b7500ecfbcf0b0d4ff905b01589a546aa53da5c1c465878305c8b6ee2c363c" => :sierra
end
depends_on "openssl@1.1"
def install
system "make", "CC=#{ENV.cc}", "PREFIX=#{prefix}"
bin.install "getgbook", "getabook", "getbnbook"
end
test do
assert_match "getgbook #{version}", shell_output("#{bin}/getgbook", 1)
end
end