mirror of
https://github.com/siemens-mobile-hacks/ptr89.git
synced 2026-11-26 02:37:25 +00:00
26 lines
707 B
Ruby
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
|