[arch-commits] Commit in gnuradio/repos (3 files)
Kyle Keen
kkeen at archlinux.org
Fri Mar 13 00:18:52 UTC 2020
Date: Friday, March 13, 2020 @ 00:18:52
Author: kkeen
Revision: 595603
archrelease: copy trunk to community-staging-x86_64
Added:
gnuradio/repos/community-staging-x86_64/
gnuradio/repos/community-staging-x86_64/21-fcd.rules
(from rev 595602, gnuradio/trunk/21-fcd.rules)
gnuradio/repos/community-staging-x86_64/PKGBUILD
(from rev 595602, gnuradio/trunk/PKGBUILD)
--------------+
21-fcd.rules | 9 ++++
PKGBUILD | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 112 insertions(+)
Copied: gnuradio/repos/community-staging-x86_64/21-fcd.rules (from rev 595602, gnuradio/trunk/21-fcd.rules)
===================================================================
--- community-staging-x86_64/21-fcd.rules (rev 0)
+++ community-staging-x86_64/21-fcd.rules 2020-03-13 00:18:52 UTC (rev 595603)
@@ -0,0 +1,9 @@
+# Udev rules for the Funcube Dongle Pro (0xfb56) and Pro+ (0xfb31)
+
+# HIDAPI/libusb:
+SUBSYSTEMS=="usb" ATTRS{idVendor}=="04d8" ATTRS{idProduct}=="fb56" MODE:="0666"
+SUBSYSTEMS=="usb" ATTRS{idVendor}=="04d8" ATTRS{idProduct}=="fb31" MODE:="0666"
+
+# HIDAPI/hidraw:
+KERNEL=="hidraw*", ATTRS{busnum}=="1", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="fb56", MODE="0666"
+KERNEL=="hidraw*", ATTRS{busnum}=="1", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="fb31", MODE="0666"
Copied: gnuradio/repos/community-staging-x86_64/PKGBUILD (from rev 595602, gnuradio/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-03-13 00:18:52 UTC (rev 595603)
@@ -0,0 +1,103 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Dominik Heidler <dheidler at gmail.com>
+# Contributor: Jonatan Sastre <jsastreh [ at ] hotmail.com>
+pkgbase=gnuradio
+pkgname=(gnuradio gnuradio-companion)
+pkgver=3.8.0.0
+pkgrel=9
+pkgdesc="General purpose DSP and SDR toolkit. With drivers for usrp and fcd."
+arch=('x86_64')
+url="https://gnuradio.org"
+license=('GPL')
+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' 'pango' 'gtk3')
+makedepends=('boost' 'cmake' 'python-lxml' 'glu' 'swig' 'python-gobject'
+ 'qwt' 'python-pyqt5' 'python-cairo')
+
+# todo
+# split the gui components?
+# build doxygen docs?
+# gr-video-sdl ?
+# icons
+# add thrift?
+
+# zeroc-ice: gr-ctrlport
+# doxygen: C++ autogenerated documentation
+# python-sphinx: Python autogenerated documentation
+
+# secret release directory
+#source=("http://s3-dist.gnuradio.org/gnuradio-$pkgver.tar.gz"
+# 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"
+ "21-fcd.rules")
+validpgpkeys=('B90DDFAC56989BF62262EB812987C77CBB8ED9B2' # GNU Radio Project
+ 'D74F9F146E7F755783583158B343B2BA293E5174') # Marcus Müller
+md5sums=('85e1ed4b18c46227731d83f8c3fbe45a'
+ 'SKIP'
+ '465e12c454c6a22ebec9849181af7bdc')
+
+prepare() {
+ cd "$srcdir/$pkgbase-$pkgver"
+ sed -i -e "s|GR_PKG_LIBEXEC_DIR|GR_RUNTIME_DIR|" grc/scripts/freedesktop/CMakeLists.txt
+ #sed -i -e "s|/qwt$|/qwt5|" -e "s| qwt | qwt5 |" cmake/Modules/FindQwt.cmake
+ sed -i -e "s| sphinx-build$| sphinx-build2|" cmake/Modules/FindSphinx.cmake
+}
+
+build() {
+ export PYTHON=python3
+ cd "$srcdir/$pkgbase-$pkgver"
+ mkdir -p build
+ cd build
+ cmake \
+ -DPYTHON_EXECUTABLE=$(which python3) \
+ -DPYTHON_INCLUDE_DIR=/usr/include/python3.8 \
+ -DPYTHON_LIBRARY=/usr/lib/libpython3.8.so \
+ -DGR_PYTHON_DIR=/usr/lib/python3.8/site-packages \
+ -DENABLE_INTERNAL_VOLK=OFF \
+ -DENABLE_GRC=ON \
+ -DENABLE_GR_QTGUI=ON \
+ -DQWT_LIBRARIES=/usr/lib/libqwt.so \
+ -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev ../
+ make
+}
+
+check() {
+ cd "$srcdir/$pkgbase-$pkgver/build"
+ export PYTHON=python3
+ #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"
+ cd "$srcdir/$pkgbase-$pkgver/grc/scripts/freedesktop"
+ install -Dm644 gnuradio-grc.desktop "$pkgdir/usr/share/applications/gnuradio-grc.desktop"
+ cd "$srcdir/$pkgbase-$pkgver/build"
+ make DESTDIR="$pkgdir" install
+}
+
+package_gnuradio-companion() {
+ pkgdesc="GUI frontend for gnuradio and SDR."
+ depends=('gnuradio' 'qwt' 'python-lxml'
+ 'python-opengl' 'python-cairo' 'python-pyqt5')
+ # Yup, nothing in the package except dependencies,
+ # because more than five optdeps is too many for most people.
+}
+
+# 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
+
More information about the arch-commits
mailing list