homebrew-cask/Casks/g/gqrx.rb

27 lines
754 B
Ruby

cask "gqrx" do
version "2.16"
sha256 "e18fe29cbaf83ed560b377ff444dba221882eb37a19628d96c9da7960a09a25b"
url "https://github.com/gqrx-sdr/gqrx/releases/download/v#{version.major_minor_patch}/Gqrx-#{version}.dmg",
verified: "github.com/gqrx-sdr/gqrx/"
name "Gqrx"
desc "Software-defined radio receiver powered by GNU Radio and Qt"
homepage "https://gqrx.dk/"
depends_on macos: ">= :catalina"
app "Gqrx.app"
# shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
shimscript = "#{staged_path}/gqrx.wrapper.sh"
binary shimscript, target: "gqrx"
preflight do
File.write shimscript, <<~EOS
#!/bin/sh
'#{appdir}/Gqrx.app/Contents/MacOS/gqrx' "$@"
EOS
end
zap trash: "~/.config/gqrx"
end