From 00b4cbc74f50a5d02d05023880807da384b51ebf Mon Sep 17 00:00:00 2001 From: gt7-void Date: Sat, 25 Jul 2020 22:30:21 -0300 Subject: [PATCH] New package: GoldenCheetah-3.5 --- .../GoldenCheetah/patches/qt5-5.15.0.patch | 58 +++++++++++++++++++ srcpkgs/GoldenCheetah/template | 28 +++++++++ 2 files changed, 86 insertions(+) create mode 100644 srcpkgs/GoldenCheetah/patches/qt5-5.15.0.patch create mode 100644 srcpkgs/GoldenCheetah/template diff --git a/srcpkgs/GoldenCheetah/patches/qt5-5.15.0.patch b/srcpkgs/GoldenCheetah/patches/qt5-5.15.0.patch new file mode 100644 index 00000000000..5b124dd1756 --- /dev/null +++ b/srcpkgs/GoldenCheetah/patches/qt5-5.15.0.patch @@ -0,0 +1,58 @@ +Source: @pullmoll +Upstream: no +Reason: qt5-5.15.0 requires explicit include for QPainterPath + +--- qwt/src/qwt_painter.h 2019-01-02 17:21:30.232435482 +0100 ++++ qwt/src/qwt_painter.h 2020-07-14 16:47:54.577577031 +0200 +@@ -17,6 +17,7 @@ + #include + #include + #include ++#include + + class QPainter; + class QBrush; +@@ -31,7 +32,6 @@ + class QwtInterval; + + class QTextDocument; +-class QPainterPath; + + /*! + \brief A collection of QPainter workarounds +--- qwt/src/qwt_null_paintdevice.cpp 2019-01-02 17:21:31.296461212 +0100 ++++ qwt/src/qwt_null_paintdevice.cpp 2020-07-14 16:49:13.479579545 +0200 +@@ -9,6 +9,7 @@ + + #include "qwt_null_paintdevice.h" + #include ++#include + #include + + class QwtNullPaintDevice::PrivateData +--- qwt/src/qwt_painter_command.h 2019-01-02 17:21:30.320437610 +0100 ++++ qwt/src/qwt_painter_command.h 2020-07-14 16:50:38.501582253 +0200 +@@ -12,12 +12,11 @@ + + #include "qwt_global.h" + #include ++#include + #include + #include + #include + +-class QPainterPath; +- + /*! + QwtPainterCommand represents the attributes of a paint operation + how it is used between QPainter and QPaintDevice +--- qwt/src/qwt_plot_glcanvas.h 2019-01-02 17:21:30.204434804 +0100 ++++ qwt/src/qwt_plot_glcanvas.h 2020-07-14 16:52:54.074586572 +0200 +@@ -13,6 +13,7 @@ + #include "qwt_global.h" + #include + #include ++#include + + class QwtPlot; + diff --git a/srcpkgs/GoldenCheetah/template b/srcpkgs/GoldenCheetah/template new file mode 100644 index 00000000000..714052fbb05 --- /dev/null +++ b/srcpkgs/GoldenCheetah/template @@ -0,0 +1,28 @@ +# Template file for 'GoldenCheetah' +pkgname=GoldenCheetah +version=3.5 +revision=1 +build_style=qmake +hostmakedepends="qt5-qmake qt5-host-tools qt5-charts-devel + qt5-connectivity-devel qt5-multimedia-devel qt5-serialport-devel + qt5-svg-devel qt5-webkit-devel bison flex" +makedepends="qt5-devel qt5-charts-devel qt5-connectivity-devel + qt5-multimedia-devel qt5-serialport-devel qt5-svg-devel + qt5-webkit-devel zlib-devel" +short_desc="Performance Software for Cyclists, Runners and Triathletes" +maintainer="gt7-void " +license="GPL-2.0-or-later" +homepage="http://www.goldencheetah.org/" +distfiles="https://github.com/GoldenCheetah/GoldenCheetah/archive/V$version.tar.gz" +checksum=d5a12a71b9bd49ec8224aca51807155cddc8863b69abc1c48e54084014115020 + +pre_configure() { + cp "qwt/qwtconfig.pri.in" "qwt/qwtconfig.pri" + + echo "QMAKE_LRELEASE = /usr/bin/lrelease" > src/gcconfig.pri + echo "LIBZ_LIBS = -lz" >> src/gcconfig.pri +} + +do_install() { + vbin "src/GoldenCheetah" +}