feat: Initial formula
Some checks failed
brew test-bot / test-bot (macos-13) (push) Waiting to run
brew test-bot / test-bot (macos-15) (push) Waiting to run
brew test-bot / test-bot (ubuntu-22.04) (push) Failing after 46s

This commit is contained in:
2024-12-17 16:54:10 -05:00
parent 0942cfbb10
commit 3bb78a7728

26
Formula/hpa.rb Normal file
View File

@@ -0,0 +1,26 @@
class Hpa < Formula
desc "Command-line tool for managine home assesment projects"
homepage "https://git.housh.dev/michael/swift-hpa.git"
url "https://git.housh.dev/michael/swift-hpa/archive/v0.1.1.tar.gz"
sha256 "e6424672802fae056e423f3af77fda5a9c9bb5307ac2712ff8bfd072c1642a3b"
license "MIT"
depends_on xcode: ["16.0", :build]
uses_from_macos "swift" => :build
def install
args = if OS.mac?
["--disable-sandbox"]
else
["--static-swift-stdlib"]
end
system "swift", "build", *args, "-c", "release", "--product", "hpa"
bin.install ".build/release/hpa"
generate_completions_from_executable(bin/"hpa", "--generate-completion-script")
end
test do
system "true"
end
end