From 5595b6d8a54fc75f4c75a066f6644e551d96e65a Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Fri, 13 Dec 2024 14:30:46 -0500 Subject: [PATCH 1/2] gopeed 1.6.4 (new formula) Signed-off-by: Rui Chen --- .github/autobump.txt | 1 + Formula/g/gopeed.rb | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 Formula/g/gopeed.rb diff --git a/.github/autobump.txt b/.github/autobump.txt index ddd9cfa664c31..96ec9570acc91 100644 --- a/.github/autobump.txt +++ b/.github/autobump.txt @@ -1179,6 +1179,7 @@ googletest goose gopass gopass-jsonapi +gopeed gopls goplus gor diff --git a/Formula/g/gopeed.rb b/Formula/g/gopeed.rb new file mode 100644 index 0000000000000..ef894e60f7b9d --- /dev/null +++ b/Formula/g/gopeed.rb @@ -0,0 +1,19 @@ +class Gopeed < Formula + desc "Modern download manager that supports all platform" + homepage "https://gopeed.com" + url "https://github.com/GopeedLab/gopeed/archive/refs/tags/v1.6.4.tar.gz" + sha256 "73e9fdc4100d1a02d8b0ab442fddaf33e287b58dbdf916c033a312feddc1461f" + license "GPL-3.0-or-later" + + depends_on "go" + + def install + system "go", "build", *std_go_args(ldflags: "-s -w"), "./cmd/gopeed" + end + + test do + output = shell_output("#{bin}/gopeed https://example.com/") + assert_match "saving path: #{testpath}", output + assert_match "Example Domain", (testpath/"example.com").read + end +end From a2d8b757c040bfbfa63b3825f6fbaa184f02b157 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sat, 14 Dec 2024 01:33:06 +0000 Subject: [PATCH 2/2] gopeed: add 1.6.4 bottle. --- Formula/g/gopeed.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Formula/g/gopeed.rb b/Formula/g/gopeed.rb index ef894e60f7b9d..b9012bf1764b6 100644 --- a/Formula/g/gopeed.rb +++ b/Formula/g/gopeed.rb @@ -5,6 +5,15 @@ class Gopeed < Formula sha256 "73e9fdc4100d1a02d8b0ab442fddaf33e287b58dbdf916c033a312feddc1461f" license "GPL-3.0-or-later" + bottle do + sha256 cellar: :any_skip_relocation, arm64_sequoia: "ea70bdb86f8c81f89cf034115f9ecd39d8862eae0cd9524eddcfaccb74915981" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "ec735127fa80d2d7a9e157ff9221751e49d9c5f682b90c15c3fab60f547e36c4" + sha256 cellar: :any_skip_relocation, arm64_ventura: "42c5e12669da3487d7b87fbeb527d87eec81d0222311ec40886917452fa8051b" + sha256 cellar: :any_skip_relocation, sonoma: "46c572fea117f23df571cc32810f7d599a79f49ea4317d971b5a06d72a136933" + sha256 cellar: :any_skip_relocation, ventura: "bdd7e0e6733ce902d3c27416187f717d102791484e4a0c26ecdfe36148969d68" + sha256 cellar: :any_skip_relocation, x86_64_linux: "cb0f579b6c15577d4c631e2037f9da903eaadee612237eff79a2690257211ec5" + end + depends_on "go" def install