homebrew-core/Formula/f3.rb

29 lines
950 B
Ruby

class F3 < Formula
desc "Test various flash cards"
homepage "https://fight-flash-fraud.readthedocs.io/en/latest/"
url "https://github.com/AltraMayor/f3/archive/v8.0.tar.gz"
sha256 "fb5e0f3b0e0b0bff2089a4ea6af53278804dfe0b87992499131445732e311ab4"
license "GPL-3.0-only"
head "https://github.com/AltraMayor/f3.git"
bottle do
cellar :any_skip_relocation
sha256 "198f9b2d578a294fb61e2b9203cc1285c9c0a2fa6048fb1e34130f7d8a2039ff" => :catalina
sha256 "70d5966a5afb44fe91225d81f54adf80cd7b254ac9253423234d4c99d4a2435d" => :mojave
sha256 "55da39f3758797df44426b7744542b4322ddc84b20fc7a5664e2da672cef0d1a" => :high_sierra
end
depends_on "argp-standalone"
def install
system "make", "all", "ARGP=#{Formula["argp-standalone"].opt_prefix}"
bin.install %w[f3read f3write]
man1.install "f3read.1"
man1.install_symlink "f3read.1" => "f3write.1"
end
test do
system "#{bin}/f3read", testpath
end
end