From: Karim Hamidou Date: Tue, 16 Jul 2024 13:56:46 +0000 (-0700) Subject: Switch to a cask X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=04aceff6aa3658b2931c807b6c63f27aa5ffbc1b;p=homebrew-taps.git Switch to a cask --- diff --git a/Casks/p/prguy.rb b/Casks/p/prguy.rb new file mode 100644 index 0000000..34fc164 --- /dev/null +++ b/Casks/p/prguy.rb @@ -0,0 +1,11 @@ +cask "prguy" do + version "0.7" + sha256 "74ba1c5136bf2d2a8277b4f1ea7d81e65642a80f466345bc9e0f549ff830c7d0" + + url "https://github.com/tonsky/AnyBar/releases/download/#{version}/prguy.zip" + name "PRGuy" + desc "Watch your PRs like a hawk." + homepage "https://prguy.app" + + app "PRGuy.app" +end diff --git a/Formula/p/prguy.rb b/Formula/p/prguy.rb deleted file mode 100644 index fb41f0e..0000000 --- a/Formula/p/prguy.rb +++ /dev/null @@ -1,22 +0,0 @@ -class GoCritic < Formula - name "PRGuy" - desc "Watch your PRs like a hawk" - homepage "https://github.com/khamidou/prguy" - - url "https://github.com/khamidou/prguy/archive/refs/tags/0.5.tar.gz" - sha256 "c9b18b094a39f6e6468e1f3fca0b6038a1246ba676c7e915759b54df2dde691e" - license "MIT" - head "https://github.com/khamidou/prguy.git", branch: "main" - - livecheck do - url :stable - regex(/^v?(\d+(?:\.\d+)+)$/i) - end - depends_on "go" - - def install - ldflags = "-s -w" - ldflags += " -X main.Version=v#{version}" unless build.head? - system "go", "build", *std_go_args(ldflags:, output: bin/"prguy"), "./cmd/prguy" - end -end