summaryrefslogtreecommitdiff
path: root/pcr/gnuradio-osmosdr-xtrx/PKGBUILD
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2018-11-30 02:23:48 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2018-11-30 02:32:46 +0100
commit010aa51bbff969b8fb51a6cbc8cd3239975dc696 (patch)
tree3a13691b395d7a14442cce4ddbe0c401dc19ea7b /pcr/gnuradio-osmosdr-xtrx/PKGBUILD
parent57f74a48d187da777bc28ec6920787f7a1248473 (diff)
downloadabslibre-010aa51bbff969b8fb51a6cbc8cd3239975dc696.tar.gz
abslibre-010aa51bbff969b8fb51a6cbc8cd3239975dc696.tar.bz2
abslibre-010aa51bbff969b8fb51a6cbc8cd3239975dc696.zip
pcr: Add prelimirary userspace support for the xtrx SDR
Caveats: - There is no package for xtrx-linux-pcie-drv yet - The liblms7002m, libxtrx and libxtrxdsp are installed in /usr/local/ - While gqrx can be launched, I didn't manage to receive commercial FM stations with it yet. That may be due to: - my hardware setup (antennas, etc) which is far from being obtimal - my software setup (i686 hasn't been reported to work yet) - Wrong parameters in gqrx: the device seem to be other and the device string seem to be "xtrx", but other than that I didn't have a good enough waterfall to verify that it is receiving something. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'pcr/gnuradio-osmosdr-xtrx/PKGBUILD')
-rw-r--r--pcr/gnuradio-osmosdr-xtrx/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/pcr/gnuradio-osmosdr-xtrx/PKGBUILD b/pcr/gnuradio-osmosdr-xtrx/PKGBUILD
new file mode 100644
index 000000000..b2c0a37dd
--- /dev/null
+++ b/pcr/gnuradio-osmosdr-xtrx/PKGBUILD
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd@gmail.com?>
+# Contributor: Dominik Heidler <dheidler@gmail.com>
+pkgname=gnuradio-osmosdr-xtrx
+_pkgname=gr-osmosdr
+pkgver=0.1.4+git
+pkgrel=26
+pkgdesc="Source block for Funcube Dongle, RTL-SDR, USRP, OsmoSDR, BladeRF, HackRF and AirSpy devices"
+url="http://sdr.osmocom.org/trac/"
+arch=(armv7h i686 x86_64)
+license=('GPL')
+depends=('gnuradio' 'gnuradio-iqbal' 'rtl-sdr' 'gnuradio-fcdproplus' 'hackrf' 'bladerf' 'airspy')
+optdepends=('python2-opengl: osmocom_fft')
+makedepends=('git' 'cmake' 'boost' 'python2-cheetah' 'swig')
+conflicts=('gr-osmosdr-git' 'gnuradio-osmosdr')
+branch=libxtrx
+source=("git://github.com/xtrx-sdr/gr-osmosdr.git#branch=$branch")
+md5sums=('SKIP')
+
+# add support for miri, osmo?
+
+prepare() {
+ cd "$srcdir/$_pkgname"
+ sed -i 's/python$/python2/' apps/osmocom_siggen_base.py
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ mkdir build
+ cd build
+ cmake \
+ -Wno-dev \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DPYTHON_EXECUTABLE=$(which python2) \
+ -DPYTHON_INCLUDE_DIR=$(echo /usr/include/python2*) \
+ -DPYTHON_LIBRARY=$(echo /usr/lib/libpython2.*.so) \
+ -DCMAKE_INSTALL_PREFIX=/usr ../
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname/build/"
+ make DESTDIR="${pkgdir}" install
+}