[arch-commits] Commit in srsgui/repos (3 files)

Antonio Rojas arojas at gemini.archlinux.org
Sun Oct 10 17:59:23 UTC 2021


    Date: Sunday, October 10, 2021 @ 17:59:23
  Author: arojas
Revision: 1029279

archrelease: copy trunk to community-staging-x86_64

Added:
  srsgui/repos/community-staging-x86_64/
  srsgui/repos/community-staging-x86_64/PKGBUILD
    (from rev 1029278, srsgui/trunk/PKGBUILD)
  srsgui/repos/community-staging-x86_64/srsgui-qwt-6.2.patch
    (from rev 1029278, srsgui/trunk/srsgui-qwt-6.2.patch)

----------------------+
 PKGBUILD             |   40 ++++++++++++++++++++++++++++++++
 srsgui-qwt-6.2.patch |   61 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 101 insertions(+)

Copied: srsgui/repos/community-staging-x86_64/PKGBUILD (from rev 1029278, srsgui/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-10-10 17:59:23 UTC (rev 1029279)
@@ -0,0 +1,40 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=srsgui
+_pkgname=srsGUI
+pkgver=2.0
+_tag=release_${pkgver/./_}_qt5
+pkgrel=2
+pkgdesc='A graphics library for software radio'
+arch=('x86_64')
+url='https://github.com/srsLTE/srsGUI'
+license=('AGPL3')
+depends=('boost-libs' 'qt5-base' 'qwt')
+makedepends=('cmake' 'boost')
+source=("$_pkgname-$pkgver.tar.gz::$url/archive/$_tag.tar.gz"
+         srsgui-qwt-6.2.patch)
+sha512sums=('9d766a80fc81b015f5c8dbed3fa97d417496a0e4db11bd23a66bae4c3a2d7e0206f2569af8884d01b40702416dab6add52cc0ef04f29b176aba99de00466a88d'
+            '1097681e57d0548db36db9ab1331e6e96554b44618b21ee08631e188e092796d57ec49c0456055b633026246eb652f75cd7470c60bb530ebf246d92cd9f28b5e')
+
+prepare() {
+  patch -d $_pkgname-$_tag -p1 < srsgui-qwt-6.2.patch # Fix build with qwt 6.2
+}
+
+build() {
+  mkdir $_pkgname-$_tag/build
+  cd $_pkgname-$_tag/build
+
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DQWT_NAMES=qwt
+
+  make
+}
+
+package() {
+  cd $_pkgname-$_tag/build
+
+  make DESTDIR="$pkgdir" install
+}
+

Copied: srsgui/repos/community-staging-x86_64/srsgui-qwt-6.2.patch (from rev 1029278, srsgui/trunk/srsgui-qwt-6.2.patch)
===================================================================
--- community-staging-x86_64/srsgui-qwt-6.2.patch	                        (rev 0)
+++ community-staging-x86_64/srsgui-qwt-6.2.patch	2021-10-10 17:59:23 UTC (rev 1029279)
@@ -0,0 +1,61 @@
+diff --git a/include/srsgui/common/WaterfallData.h b/include/srsgui/common/WaterfallData.h
+index a289c6d..5cde564 100755
+--- a/include/srsgui/common/WaterfallData.h
++++ b/include/srsgui/common/WaterfallData.h
+@@ -2,6 +2,7 @@
+ #define WATERFALLDATA_H
+ 
+ #include <qwt_raster_data.h>
++#include <qwt_interval.h>
+ #ifndef Q_MOC_RUN
+ #include <boost/circular_buffer.hpp>
+ #include <boost/shared_ptr.hpp>
+@@ -65,6 +66,16 @@ public:
+     return *(std::min_element(minVec.begin(),minVec.end()));
+   }
+ 
++  QwtInterval interval( Qt::Axis axis) const
++  {
++    return d_intervals[axis];
++  }
++
++  void setInterval( Qt::Axis axis, const QwtInterval &interval )
++  {
++    d_intervals[axis] = interval;
++  }
++
+   double value(double x, double y) const
+   {
+     double bottom = interval(Qt::YAxis).minValue();
+@@ -88,6 +99,7 @@ private:
+   VecPtrBuf data_;
+   int nData_;
+   int nRows_;
++  QwtInterval d_intervals[3];
+ };
+ 
+ #endif // WATERFALLDATA_H
+diff --git a/src/common/Spectrogramplot.cpp b/src/common/Spectrogramplot.cpp
+index ca9fad9..92a25d5 100755
+--- a/src/common/Spectrogramplot.cpp
++++ b/src/common/Spectrogramplot.cpp
+@@ -8,6 +8,8 @@
+ #include <qwt_plot_canvas.h>
+ #include "srsgui/common/Spectrogramplot.h"
+ 
++#include <QPen>
++
+ class MyZoomer: public QwtPlotZoomer
+ {
+ public:
+@@ -101,8 +103,8 @@ Spectrogramplot::Spectrogramplot(int numDataPoints, int numRows, QWidget *parent
+   sd->setMinimumExtent( fm.width("100.00") );
+ 
+   const QColor c(Qt::darkBlue);
+-  zoomer_->setRubberBandPen(c);
+-  zoomer_->setTrackerPen(c);
++  zoomer_->setRubberBandPen(QPen(c));
++  zoomer_->setTrackerPen(QPen(c));
+ }
+ 
+ void Spectrogramplot::appendData(double* data, int n)



More information about the arch-commits mailing list