2015-03-06 06:38:58 +00:00
|
|
|
# Maintainer: Kyle Keen <keenerd@gmail.com>
|
|
|
|
# Contributor: Dominik Heidler <dheidler@gmail.com>
|
|
|
|
# Contributor: Jonatan Sastre <jsastreh [ at ] hotmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - set -Dhave_mfpu_neon=0 for v5/v6
|
|
|
|
|
|
|
|
pkgbase=gnuradio
|
|
|
|
pkgname=(gnuradio gnuradio-companion)
|
2019-08-21 12:37:24 +00:00
|
|
|
pkgver=3.8.0.0
|
2020-01-30 13:32:39 +00:00
|
|
|
pkgrel=7
|
2015-03-06 06:38:58 +00:00
|
|
|
pkgdesc="General purpose DSP and SDR toolkit. With drivers for usrp and fcd."
|
2018-01-06 20:50:53 +00:00
|
|
|
arch=('x86_64')
|
2019-08-21 12:37:24 +00:00
|
|
|
url="https://gnuradio.org"
|
2015-03-06 06:38:58 +00:00
|
|
|
license=('GPL')
|
2019-08-21 12:37:24 +00:00
|
|
|
depends=('fftw' 'python-numpy' 'gsl' 'blas' 'boost-libs>=1.53'
|
|
|
|
'libusbx' 'portaudio' 'libuhd' 'zeromq' 'libvolk' 'log4cpp' 'python-yaml'
|
|
|
|
'gmp' 'gsm' 'codec2' 'python-mako' 'python-click-plugins')
|
|
|
|
makedepends=('boost' 'cmake' 'python-lxml' 'glu' 'swig' 'python-gobject'
|
|
|
|
'qwt' 'python-pyqt5' 'python-cairo')
|
2015-03-06 06:38:58 +00:00
|
|
|
|
|
|
|
# todo
|
|
|
|
# split the gui components?
|
|
|
|
# build doxygen docs?
|
2015-03-15 16:56:21 +00:00
|
|
|
# gr-video-sdl ?
|
2015-03-06 06:38:58 +00:00
|
|
|
# icons
|
2019-08-21 12:37:24 +00:00
|
|
|
# add thrift?
|
2015-03-06 06:38:58 +00:00
|
|
|
|
|
|
|
# zeroc-ice: gr-ctrlport
|
|
|
|
# doxygen: C++ autogenerated documentation
|
2019-08-21 12:37:24 +00:00
|
|
|
# python-sphinx: Python autogenerated documentation
|
2015-03-06 06:38:58 +00:00
|
|
|
|
|
|
|
# secret release directory
|
2015-05-30 16:52:27 +00:00
|
|
|
#source=("http://s3-dist.gnuradio.org/gnuradio-$pkgver.tar.gz"
|
2019-04-29 12:41:21 +00:00
|
|
|
# neglected official release directory
|
|
|
|
#source=("https://gnuradio.org/releases/$pkgbase/$pkgbase-$pkgver.tar.gz"
|
|
|
|
source=("https://github.com/gnuradio/gnuradio/releases/download/v$pkgver/gnuradio-$pkgver.tar.gz"
|
|
|
|
"https://github.com/gnuradio/gnuradio/releases/download/v$pkgver/gnuradio-$pkgver.tar.gz.asc"
|
2019-08-21 12:37:24 +00:00
|
|
|
"21-fcd.rules")
|
2018-08-15 12:24:30 +00:00
|
|
|
validpgpkeys=('B90DDFAC56989BF62262EB812987C77CBB8ED9B2' # GNU Radio Project
|
|
|
|
'D74F9F146E7F755783583158B343B2BA293E5174') # Marcus Müller
|
2019-08-21 12:37:24 +00:00
|
|
|
md5sums=('85e1ed4b18c46227731d83f8c3fbe45a'
|
2016-10-30 20:42:46 +00:00
|
|
|
'SKIP'
|
2019-08-21 12:37:24 +00:00
|
|
|
'465e12c454c6a22ebec9849181af7bdc')
|
2015-03-06 06:38:58 +00:00
|
|
|
|
2015-12-27 23:01:33 +00:00
|
|
|
prepare() {
|
2015-03-06 06:38:58 +00:00
|
|
|
cd "$srcdir/$pkgbase-$pkgver"
|
2016-07-09 03:52:51 +00:00
|
|
|
sed -i -e "s|GR_PKG_LIBEXEC_DIR|GR_RUNTIME_DIR|" grc/scripts/freedesktop/CMakeLists.txt
|
2019-08-21 12:37:24 +00:00
|
|
|
#sed -i -e "s|/qwt$|/qwt5|" -e "s| qwt | qwt5 |" cmake/Modules/FindQwt.cmake
|
2015-03-06 06:38:58 +00:00
|
|
|
sed -i -e "s| sphinx-build$| sphinx-build2|" cmake/Modules/FindSphinx.cmake
|
2019-08-21 12:37:24 +00:00
|
|
|
}
|
2015-03-06 06:38:58 +00:00
|
|
|
|
2019-08-21 12:37:24 +00:00
|
|
|
build() {
|
|
|
|
export PYTHON=python3
|
2015-03-06 06:38:58 +00:00
|
|
|
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && NEON="-Dhave_mfpu_neon=0"
|
2019-08-21 12:37:24 +00:00
|
|
|
cd "$srcdir/$pkgbase-$pkgver"
|
2015-03-06 06:38:58 +00:00
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
cmake \
|
2019-08-21 12:37:24 +00:00
|
|
|
-DPYTHON_EXECUTABLE=$(which python3) \
|
2019-11-14 13:58:10 +00:00
|
|
|
-DPYTHON_INCLUDE_DIR=/usr/include/python3.8 \
|
|
|
|
-DPYTHON_LIBRARY=/usr/lib/libpython3.8.so \
|
|
|
|
-DGR_PYTHON_DIR=/usr/lib/python3.8/site-packages \
|
2016-04-25 13:37:19 +00:00
|
|
|
-DENABLE_INTERNAL_VOLK=OFF \
|
2015-03-06 06:38:58 +00:00
|
|
|
-DENABLE_GRC=ON \
|
2019-08-21 12:37:24 +00:00
|
|
|
-DENABLE_GR_QTGUI=ON \
|
|
|
|
-DQWT_LIBRARIES=/usr/lib/libqwt.so \
|
2015-03-06 06:38:58 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr -Wno-dev $NEON ../
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "$srcdir/$pkgbase-$pkgver/build"
|
2019-08-21 12:37:24 +00:00
|
|
|
export PYTHON=python3
|
2015-03-06 06:38:58 +00:00
|
|
|
#make test
|
|
|
|
}
|
|
|
|
|
|
|
|
package_gnuradio() {
|
|
|
|
optdepends=('boost: gr_modtool'
|
|
|
|
'swig: gr_modtool'
|
|
|
|
'cmake: gr_modtool'
|
|
|
|
'pkgconfig: libuhd')
|
|
|
|
cd "$srcdir"
|
|
|
|
install -Dm644 21-fcd.rules "$pkgdir/usr/lib/udev/rules.d/21-fcd.rules"
|
2016-07-09 03:52:51 +00:00
|
|
|
cd "$srcdir/$pkgbase-$pkgver/grc/scripts/freedesktop"
|
2015-12-27 23:01:33 +00:00
|
|
|
install -Dm644 gnuradio-grc.desktop "$pkgdir/usr/share/applications/gnuradio-grc.desktop"
|
2015-03-06 06:38:58 +00:00
|
|
|
cd "$srcdir/$pkgbase-$pkgver/build"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_gnuradio-companion() {
|
|
|
|
pkgdesc="GUI frontend for gnuradio and SDR."
|
2019-08-21 12:37:24 +00:00
|
|
|
depends=('gnuradio' 'qwt' 'python-lxml'
|
|
|
|
'python-opengl' 'python-cairo' 'python-pyqt5')
|
2015-03-06 06:38:58 +00:00
|
|
|
# Yup, nothing in the package except dependencies,
|
2015-03-15 16:56:21 +00:00
|
|
|
# because more than five optdeps is too many for most people.
|
2015-03-06 06:38:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# options for armv6:
|
|
|
|
# -Dhave_mfpu_neon=0 \
|
|
|
|
# -DCMAKE_CXX_FLAGS:STRING="-march=armv6 -mfpu=vfp -mfloat-abi=hard" \
|
|
|
|
# -DCMAKE_C_FLAGS:STRING="-march=armv6 -mfpu=vfp -mfloat-abi=hard" \
|
|
|
|
|
|
|
|
# options for armv7:
|
|
|
|
# -DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard"
|
|
|
|
# -DCMAKE_C_FLAGS:STRING="-march=armv7-a -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard"
|
|
|
|
# line 341 add /usr/lib/arm-linux-gnueabihf /usr/lib/arm-linux-gnueabi
|
|
|
|
|