homebrew-cask/Casks/gqrx.rb

40 lines
1.7 KiB
Ruby
Raw Normal View History

2016-05-21 00:17:10 +08:00
cask 'gqrx' do
2018-05-27 02:19:20 +08:00
version '2.11.5'
sha256 '896cefcb2825840178b6dbfb894b01543b1c8225539e6969052133223a59ffee'
2016-05-21 00:17:10 +08:00
# github.com/csete/gqrx was verified as official when first introduced to the cask
2018-04-03 03:08:53 +08:00
url "https://github.com/csete/gqrx/releases/download/v#{version.major_minor_patch}/Gqrx-#{version}.dmg"
2018-06-12 22:37:26 +08:00
appcast 'https://github.com/csete/gqrx/releases.atom'
2016-05-21 00:17:10 +08:00
name 'Gqrx'
homepage 'http://gqrx.dk/'
app 'Gqrx.app'
binary "#{appdir}/Gqrx.app/Contents/MacOS/airspy_info"
binary "#{appdir}/Gqrx.app/Contents/MacOS/airspy_rx"
binary "#{appdir}/Gqrx.app/Contents/MacOS/airspy_spiflash"
binary "#{appdir}/Gqrx.app/Contents/MacOS/hackrf_cpldjtag"
binary "#{appdir}/Gqrx.app/Contents/MacOS/hackrf_debug"
binary "#{appdir}/Gqrx.app/Contents/MacOS/hackrf_info"
binary "#{appdir}/Gqrx.app/Contents/MacOS/hackrf_spiflash"
binary "#{appdir}/Gqrx.app/Contents/MacOS/hackrf_transfer"
binary "#{appdir}/Gqrx.app/Contents/MacOS/rtl_adsb"
binary "#{appdir}/Gqrx.app/Contents/MacOS/rtl_eeprom"
binary "#{appdir}/Gqrx.app/Contents/MacOS/rtl_fm"
binary "#{appdir}/Gqrx.app/Contents/MacOS/rtl_power"
binary "#{appdir}/Gqrx.app/Contents/MacOS/rtl_sdr"
binary "#{appdir}/Gqrx.app/Contents/MacOS/rtl_tcp"
binary "#{appdir}/Gqrx.app/Contents/MacOS/rtl_test"
binary "#{appdir}/Gqrx.app/Contents/MacOS/SoapySDRUtil", target: 'soapysdrutil'
binary "#{appdir}/Gqrx.app/Contents/MacOS/volk_profile"
2018-05-22 03:21:38 +08:00
# shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
shimscript = "#{staged_path}/gqrx.wrapper.sh"
binary shimscript, target: 'gqrx'
preflight do
IO.write shimscript, <<~EOS
#!/bin/sh
'#{appdir}/Gqrx.app/Contents/MacOS/gqrx' "$@"
EOS
end
2016-05-21 00:17:10 +08:00
end