33 lines
1006 B
Ruby
33 lines
1006 B
Ruby
class SpotifyTui < Formula
|
|
desc "Terminal-based client for Spotify"
|
|
homepage "https://github.com/Rigellute/spotify-tui"
|
|
url "https://github.com/Rigellute/spotify-tui/archive/v0.22.0.tar.gz"
|
|
sha256 "3bac0ca34db6b71721af66ba423cea59780c43410bfb52d870198facc6a6a906"
|
|
license "MIT"
|
|
head "https://github.com/Rigellute/spotify-tui.git"
|
|
|
|
livecheck do
|
|
url :stable
|
|
end
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "5fb0e8a727a268fab75e58a8be2643867cfc7a5e3af72003b94c64bd6caa2074" => :catalina
|
|
sha256 "b4872366c45c70ef9104b2f5c07905615cf5726a1aa634fd9c80d4f05d8409e8" => :mojave
|
|
sha256 "17e97d214e6e9220531cf22b2e8595bcfc0639cd373470a39077c79922d7ea2a" => :high_sierra
|
|
end
|
|
|
|
depends_on "rust" => :build
|
|
|
|
def install
|
|
system "cargo", "install", *std_cargo_args
|
|
end
|
|
|
|
test do
|
|
pid = fork { exec "#{bin}/spt -c #{testpath/"client.yml"} 2>&1 > output" }
|
|
sleep 2
|
|
Process.kill "TERM", pid
|
|
assert_match /Enter your Client ID/, File.read("output")
|
|
end
|
|
end
|