[arch-commits] Commit in gqrx/trunk (PKGBUILD)

Kyle Keen kkeen at archlinux.org
Wed Aug 21 04:33:05 UTC 2019


    Date: Wednesday, August 21, 2019 @ 04:33:04
  Author: kkeen
Revision: 500386

upgpkg: gqrx 2.11.5-6

Modified:
  gqrx/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++--
 1 file changed, 29 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-21 03:24:43 UTC (rev 500385)
+++ PKGBUILD	2019-08-21 04:33:04 UTC (rev 500386)
@@ -3,7 +3,7 @@
 
 pkgname=gqrx
 pkgver=2.11.5
-pkgrel=5
+pkgrel=6
 pkgdesc="Interactive SDR receiver waterfall for many devices."
 arch=('x86_64')
 url="http://gqrx.dk/"
@@ -15,11 +15,36 @@
 md5sums=('fed4994d5c04daf70cb19e2393da7a04')
 
 prepare() {
+  cd "$srcdir/gqrx-sdr-$pkgver"
+  echo "StartupNotify=false" >> gqrx.desktop
+
+  # gnuradio 3.8 changes
+  sed -i 's|sig_source_c.h|sig_source.h|'          src/applications/gqrx/receiver.h
+  sed -i 's|multiply_const_ff.h|multiply_const.h|' src/applications/gqrx/receiver.h
+  sed -i 's|multiply_cc.h|multiply.h|'             src/applications/gqrx/receiver.h
+  sed -i 's|multiply_const_ff.h|multiply_const.h|' src/applications/gqrx/receiver.cpp
+  sed -i 's|fir_filter_ccf.h|fir_filter_blk.h|'    src/dsp/filter/fir_decim.{h,cpp}
+  sed -i 's|sub_cc.h|sub.h|'                       src/dsp/correct_iq_cc.h
+  sed -i 's|/fir_filter_ccc.h|/fir_filter_blk.h|'  src/dsp/rx_filter.h
+  sed -i 's|freq_xlating_fir_filter_ccc.h|freq_xlating_fir_filter.h|' src/dsp/rx_filter.h
+  sed -i 's|fir_filter_fcc.h|fir_filter_blk.h|'    src/dsp/stereo_demod.h
+  sed -i 's|fir_filter_fff.h|fir_filter.h|'        src/dsp/stereo_demod.h
+  sed -i 's|multiply_cc.h|multiply.h|'             src/dsp/stereo_demod.h
+  sed -i 's|multiply_ff.h|multiply.h|'             src/dsp/stereo_demod.h
+  sed -i 's|multiply_const_ff.h|multiply_const.h|' src/dsp/stereo_demod.h
+  sed -i 's|/add_ff.h|/add_blk.h|'                 src/dsp/stereo_demod.h
+  sed -i 's|fir_filter_fff.h|fir_filter_blk.h|'    src/dsp/lpf.h
+  sed -i 's|/fir_filter_ccc.h|/fir_filter_blk.h|'  src/dsp/rx_rds.h
+  sed -i 's|/fir_filter_ccf.h|/fir_filter_blk.h|'  src/dsp/rx_rds.h
+  sed -i 's|/fir_filter_fff.h|/fir_filter_blk.h|'  src/dsp/rx_rds.h
+  sed -i 's|freq_xlating_fir_filter_fcf.h|freq_xlating_fir_filter.h|' src/dsp/rx_rds.h
+  sed -i 's|freq_xlating_fir_filter_ccf.h|freq_xlating_fir_filter.h|' src/dsp/rx_rds.h
+
   cd "$srcdir"
-  echo "StartupNotify=false" >> gqrx-sdr-$pkgver/gqrx.desktop
   cp -r gqrx-sdr-$pkgver gqrx-$pkgver-alsa
   cd gqrx-$pkgver-alsa
   sed -i 's/AUDIO_BACKEND = pulse/#&/' gqrx.pro
+
 }
 
 build() {
@@ -28,6 +53,7 @@
   mkdir build
   cd build
   qmake PREFIX=/usr/ ..
+  sed -i 's|-lpthread|& -llog4cpp|' Makefile  # also 3.8 stuff
   make
   cd "$srcdir/$pkgname-$pkgver-alsa"
   rm -rf build
@@ -34,6 +60,7 @@
   mkdir build
   cd build
   qmake PREFIX=/usr/ ..
+  sed -i 's|-lpthread|& -llog4cpp|' Makefile
   make
 }
 



More information about the arch-commits mailing list