void-packages/srcpkgs/gnuradio/template
2019-07-09 09:07:32 +02:00

53 lines
1.7 KiB
Bash

# Template file for 'gnuradio'
pkgname=gnuradio
version=3.7.13.5
revision=2
build_style=cmake
nocross="relies on volk, which is not complete for arm"
conf_files="/etc/gnuradio/conf.d/*"
configure_args="-DENABLE_INTERNAL_VOLK=OFF"
pycompile_module="gnuradio grc_gnuradio pmt"
hostmakedepends="pkg-config doxygen swig python-cheetah python-lxml
python-numpy python-Sphinx"
makedepends="SDL-devel boost-devel fftw-devel gsl-devel jack-devel libgsm-devel
libusb-devel pygtk-devel volk-devel wxPython-devel uhd-devel python-devel"
depends="pygtk python-cheetah python-lxml python-numpy"
short_desc="Framework for software defined radio"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://www.gnuradio.org"
distfiles="https://github.com/gnuradio/gnuradio/archive/v${version}.tar.gz"
checksum=9afcd0e4499160bce17c8c5c100f461791ad26b4bcb967d956fb9567e74dd57f
if [ "$CROSS_BUILD" ]; then
nocross="https://build.voidlinux.org/builders/armv7l_builder/builds/7596/steps/shell_3/logs/stdio"
fi
post_install() {
rm ${DESTDIR}/usr/share/gnuradio/examples/audio/dial_tone \
${DESTDIR}/usr/share/gnuradio/examples/fcd/fcd_nfm_rx \
${DESTDIR}/usr/share/gnuradio/examples/uhd/tags_demo
vinstall grc/scripts/freedesktop/gnuradio-grc.desktop 644 \
usr/share/applications
vinstall grc/scripts/freedesktop/gnuradio_logo_icon-square.svg 644 \
usr/share/pixmaps gnuradio-grc.svg
}
gnuradio-doc_package() {
short_desc+=" - documentation"
archs=noarch
pkg_install() {
vmove usr/share/doc
}
}
gnuradio-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
}
}