Files
homebrew-formula/Formula/hpa.rb

33 lines
1.0 KiB
Ruby

class Hpa < Formula
desc "Command-line tool for managing home assesment projects"
homepage "https://git.housh.dev/michael/swift-hpa.git"
url "https://git.housh.dev/michael/swift-hpa/archive/v0.1.5.tar.gz"
sha256 "806402e82f9dedd52d50fc7c78bc725418766702512df6b08fa77c3f5d041011"
license "MIT"
version "0.1.5"
bottle do
root_url "https://git.housh.dev/michael/swift-hpa/releases/download/v0.1.5"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "81fbda33673ec59512c69f1029c4054354f2b8467eb805fbab9c0e486064d4f2"
end
depends_on xcode: ["16.0", :build]
depends_on "just" => :build
depends_on "ansible"
depends_on "imagemagick"
depends_on "pandoc"
depends_on "texLive"
uses_from_macos "swift" => :build
def install
system "swift", "build", "--disable-sandbox", "--configuration", "release", "--product", "hpa"
bin.install ".build/release/hpa"
generate_completions_from_executable(bin/"hpa", "--generate-completion-script")
end
test do
system "#{bin}/hpa", "--version"
end
end