From cc01e39eaaaed9d5dc672bca866829f808adc99c Mon Sep 17 00:00:00 2001 From: cr6git Date: Sun, 15 Jul 2018 10:15:38 +0200 Subject: [PATCH] qjackctl: update to 0.5.2, add patch for arm. (#822) --- srcpkgs/qjackctl/patches/arm.patch | 19 +++++++++++++++++++ srcpkgs/qjackctl/template | 12 ++++++------ 2 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 srcpkgs/qjackctl/patches/arm.patch diff --git a/srcpkgs/qjackctl/patches/arm.patch b/srcpkgs/qjackctl/patches/arm.patch new file mode 100644 index 00000000000..66d1a2c1aae --- /dev/null +++ b/srcpkgs/qjackctl/patches/arm.patch @@ -0,0 +1,19 @@ +--- src/qjackctlGraphForm.cpp.orig 2018-05-27 18:39:33.051174395 +0200 ++++ src/qjackctlGraphForm.cpp 2018-07-12 21:46:57.002185428 +0200 +@@ -338,11 +338,11 @@ + const QRectF& rect + = canvas->mapToScene(canvas->viewport()->rect()).boundingRect(); + const QPointF& pos = rect.center(); +- const qreal w = 0.3 * qMax(rect.width(), 800.0); +- const qreal h = 0.3 * qMax(rect.height(), 600.0); ++ const double w = 0.3 * qMax(static_cast(rect.width()), 800.0); ++ const double h = 0.3 * qMax(static_cast(rect.height()), 600.0); + +- qreal x = pos.x(); +- qreal y = pos.y(); ++ double x = pos.x(); ++ double y = pos.y(); + + switch (node->nodeMode()) { + case qjackctlGraphItem::Input: + diff --git a/srcpkgs/qjackctl/template b/srcpkgs/qjackctl/template index 372a569183f..63c9464d49f 100644 --- a/srcpkgs/qjackctl/template +++ b/srcpkgs/qjackctl/template @@ -1,21 +1,21 @@ # Template file for 'qjackctl' pkgname=qjackctl -version=0.5.0 +version=0.5.2 revision=1 build_style=gnu-configure -configure_args="--enable-jack-version --enable-qt4 --disable-qt5" -hostmakedepends="pkg-config qt-qmake" +configure_args="--enable-jack-version --enable-qt4" +hostmakedepends="pkg-config" makedepends="qt-devel jack-devel" depends="desktop-file-utils hicolor-icon-theme jack" short_desc="JACK Audio Connection Kit - Qt GUI Interface" maintainer="Juan RP " -license="GPL-2" +license="GPL-2.0-or-later" homepage="http://qjackctl.sourceforge.net" distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz" -checksum=9a74f33f6643bea8bf742ea54f9b40f08ed339887f076ff3068159c55d0ba853 +checksum=5ffd2fc629bdd30b06a5fa12e9652ca412c435ceb571e42289c3672a902b195b if [ -n "${CROSS_BUILD}" ]; then - hostmakedepends+=" qt-host-tools qt-devel" + hostmakedepends+=" qt-devel" fi post_extract() {