homebrew-core/Formula/launch.rb

38 lines
1.4 KiB
Ruby

class Launch < Formula
desc "Command-line launcher for macOS, in the spirit of `open`"
homepage "https://sabi.net/nriley/software/#launch"
url "https://sabi.net/nriley/software/launch-1.2.5.tar.gz"
sha256 "486632b11bee04d9f6bcb595fd2a68b5fde2f748ebdc182274778cc5cf97ff70"
license "BSD-3-Clause"
head "https://github.com/nriley/launch.git"
livecheck do
url "https://sabi.net/nriley/software/"
regex(/href=.*?launch[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_big_sur: "a8bc9136d5da0270c108662086bebfd5cf74cd5eb82a773318e9be1b7a61b986"
sha256 cellar: :any_skip_relocation, big_sur: "0190475edf924787849170f68ab44589bbb41e8eb8e72dc86fefb4f15954ce00"
sha256 cellar: :any_skip_relocation, catalina: "1d48da3f7c9c226fe622e83b1ff37bca0b960ab6979b01f2bf2e4b8010febacc"
sha256 cellar: :any_skip_relocation, mojave: "d9eddaed19bcf6f70a4d6039028cc95693a616006541bd07e3ccea619f462ad8"
end
depends_on xcode: :build
depends_on :macos
def install
rm_rf "launch" # We'll build it ourself, thanks.
xcodebuild "-configuration", "Deployment", "SYMROOT=build", "clean"
xcodebuild "-configuration", "Deployment", "SYMROOT=build"
man1.install gzip("launch.1")
bin.install "build/Deployment/launch"
end
test do
assert_equal "/", shell_output("#{bin}/launch -n /").chomp
end
end