Files
tigerbrew/Library/Formula/binwalk.rb
Sevan Janiyan 2e97fd8df8 binwalk 2.3.4
v2.3.4 is the last Python based version before the complete rewrite
in Rust for 3.0.
Stripped everything back since "Besides a Python interpreter, there
are no installation dependencies for binwalk. All dependencies are
optional run-time dependencies"
2025-10-28 22:36:47 +00:00

26 lines
764 B
Ruby

class Binwalk < Formula
desc "Searches a binary image for embedded files and executable code"
homepage "https://github.com/ReFirmLabs/binwalk"
url "https://github.com/ReFirmLabs/binwalk/archive/refs/tags/v2.3.4.tar.gz"
sha256 "60416bfec2390cec76742ce942737df3e6585c933c2467932f59c21e002ba7a9"
license "MIT"
bottle do
end
depends_on "python3"
depends_on "xz" => :run
def install
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python3.10/site-packages"
system "python3", *Language::Python.setup_install_args(libexec)
bin.install Dir["#{libexec}/bin/*"]
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
test do
touch "binwalk.test"
system "#{bin}/binwalk", "binwalk.test"
end
end