diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-03-17 00:04:04 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-03-17 00:04:04 +0100 |
| commit | cdfa90838481454f336639a5b5fc312d17b6c641 (patch) | |
| tree | 419f8910ab5d5618d8605228b0c0f1457287a41e /Formula | |
| parent | 1f27122e49ee5c2dbb2ab91912bd9b4c8639c07e (diff) | |
Add lyricli 3.0.0
Diffstat (limited to 'Formula')
| -rw-r--r-- | Formula/lyricli-3.0.0.rb | 21 | ||||
| -rw-r--r-- | Formula/lyricli.rb | 15 |
2 files changed, 31 insertions, 5 deletions
diff --git a/Formula/lyricli-3.0.0.rb b/Formula/lyricli-3.0.0.rb new file mode 100644 index 0000000..cc07402 --- /dev/null +++ b/Formula/lyricli-3.0.0.rb @@ -0,0 +1,21 @@ +class Lyricli < Formula + desc "A command line tool to show the lyrics of your current song." + 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 + bin.install "lrc" + end + + test do + assert_match "3.0.0", shell_output("#{bin}/lrc --version") + end +end diff --git a/Formula/lyricli.rb b/Formula/lyricli.rb index c3f52cc..cc07402 100644 --- a/Formula/lyricli.rb +++ b/Formula/lyricli.rb @@ -1,9 +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.1-universal.tar.gz" - license "Apache-2.0" - sha256 "105313ed4ca9dc90a6cadbcfd3c0ca578c99678972d3085d87f3022d99c436ea" + 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 @@ -11,6 +16,6 @@ class Lyricli < Formula end test do - assert_match "2.0.1", shell_output("#{bin}/lrc --version") + assert_match "3.0.0", shell_output("#{bin}/lrc --version") end end |