homebrew-core/Formula/btpd.rb

30 lines
1.2 KiB
Ruby

class Btpd < Formula
desc "BitTorrent Protocol Daemon"
homepage "https://github.com/btpd/btpd"
url "https://github.com/downloads/btpd/btpd/btpd-0.16.tar.gz"
sha256 "296bdb718eaba9ca938bee56f0976622006c956980ab7fc7a339530d88f51eb8"
license "BSD-2-Clause"
revision 2
bottle do
sha256 cellar: :any, arm64_big_sur: "899a1e60fbe73ab6ed57bfec2e6903b76a52e7831cb0280c6a34d689473def17"
sha256 cellar: :any, big_sur: "bdbb56a74d359d9feb9a6258ff4feff869561ffa208251be9f1a4ab3f18d3939"
sha256 cellar: :any, catalina: "777f217d1d4cb87a8f4dae2bb1fdf3d62037561bd72f93fbb753674516870b0c"
sha256 cellar: :any, mojave: "0b479e7b812055a0ebbbae40c63624258044d74cb11a2d698392792a5b543e4d"
sha256 cellar: :any, high_sierra: "35042eba57182babbaff9f4a2eb1cbe891ebd82d2427a14926fd3617475da363"
sha256 cellar: :any, sierra: "6951afbf4af1e9d0df95f5d9260ef04eeb7e558cd2d58c3a429a99ad93c2dddc"
end
depends_on "openssl@1.1"
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
assert_match "Torrents can be specified", pipe_output("#{bin}/btcli --help 2>&1")
end
end