]> git.r.bdr.sh - rbdr/homebrew-apps/blobdiff - Formula/lyricli.rb
Add map
[rbdr/homebrew-apps] / Formula / lyricli.rb
index 4d37a6d7b38a3bfd43fb477d04c5d7c92319cd57..cc074029995970a7dd1bb6290419d41c90cbd1cb 100644 (file)
@@ -1,8 +1,14 @@
 class Lyricli < Formula
   desc "A command line tool to show the lyrics of your current song."
-  homepage "https://unlimited.pizza/lyricli.html"
-  url "https://unlimited.pizza/files/lyricli/lrc-2.0.0-universal.tar.gz"
-  sha256 "d6cc3879d3daafddf728158d8ffbe79cae7a1bad4bf5a72e57976a5ceb179fd7"
+  homepage "https://r.bdr.sh/lyricli.html"
+  if Hardware::CPU.arm?
+    url "https://build.r.bdr.sh/lyricli/lrc-aarch64-apple-darwin-3.0.0.tar.gz"
+    sha256 "8e83e2b8c1fd4304637b0b3f035f312c7f47df958214324b05a82a4ce8abe34d"
+  else
+    url "https://build.r.bdr.sh/lyricli/lrc-x86_64-apple-darwin-3.0.0.tar.gz"
+    sha256 "676122bbf34aa695f8b56674649b2eb70f3e3885876be0e3f55b6686714ebcc7"
+  end
+  license "AGPL-3.0-or-later"
   head "https://git.sr.ht/~rbdr/lyricli"
 
   def install
@@ -10,6 +16,6 @@ class Lyricli < Formula
   end
 
   test do
-    assert_match "2.0.0", shell_output("#{bin}/lrc --version")
+    assert_match "3.0.0", shell_output("#{bin}/lrc --version")
   end
 end