ptr89/ptr89.rb
2025-01-08 05:27:38 +03:00

26 lines
707 B
Ruby

class Ptr89 < Formula
desc "Tool for converting .elf to .vkp patches"
homepage "https://github.com/siemens-mobile-hacks/ptr89"
url "https://github.com/siemens-mobile-hacks/ptr89.git",
tag: "RELEASE_TAG_NAME",
revision: "RELEASE_TAG_HASH"
license "MIT"
head "https://github.com/siemens-mobile-hacks/ptr89.git", branch: "main"
livecheck do
url :stable
strategy :github_latest
end
depends_on "cmake" => :build
def install
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
test do
assert_match "Usage: ptr89", shell_output("#{bin}/ptr89 -h 2>&1", 1)
end
end