void-packages/srcpkgs/gqrx/template

28 lines
1.0 KiB
Bash

# Template file for 'gqrx'
pkgname=gqrx
version=2.11.5
revision=1
wrksrc="gqrx-sdr-${version}"
build_style=cmake
configure_args="$(vopt_if gr_audio -DLINUX_AUDIO_BACKEND=Gr-audio)
$(vopt_if portaudio -DLINUX_AUDIO_BACKEND=Portaudio)"
hostmakedepends="pkg-config"
makedepends="boost-devel gnuradio-devel gnuradio-osmosdr-devel pulseaudio-devel
qt5-svg-devel $(vopt_if portaudio portaudio-devel)"
short_desc="Software defined radio receiver powered by GNU Radio and Qt"
maintainer="bra1nwave <brainwave@openmailbox.org>"
license="GPL-3.0-or-later"
homepage="http://gqrx.dk/"
distfiles="https://github.com/csete/gqrx/releases/download/v${version}/gqrx-sdr-${version}-src.tar.xz"
checksum=793062ef7b49a3f986b82a255f949cdda42333107fc5fcea10fd13db74157744
build_options="gr_audio portaudio"
vopt_conflict gr_audio portaudio
desc_option_gr_audio="Enable support for GNU Radio audio (ALSA and JACK)"
desc_option_portaudio="Enable support for Portaudio"
post_install() {
vinstall gqrx.desktop 644 usr/share/applications
vinstall resources/icons/gqrx.svg 644 usr/share/pixmaps
}