[arch-commits] Commit in deepin-qt5integration/repos (4 files)

Antonio Rojas arojas at archlinux.org
Thu Dec 12 12:44:56 UTC 2019


    Date: Thursday, December 12, 2019 @ 12:44:55
  Author: arojas
Revision: 537363

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-qt5integration/repos/community-staging-x86_64/
  deepin-qt5integration/repos/community-staging-x86_64/PKGBUILD
    (from rev 537362, deepin-qt5integration/trunk/PKGBUILD)
  deepin-qt5integration/repos/community-staging-x86_64/deepin-qt5integration-qt5.13.patch
    (from rev 537362, deepin-qt5integration/trunk/deepin-qt5integration-qt5.13.patch)
  deepin-qt5integration/repos/community-staging-x86_64/deepin-qt5integration-qt5.14.patch
    (from rev 537362, deepin-qt5integration/trunk/deepin-qt5integration-qt5.14.patch)

------------------------------------+
 PKGBUILD                           |   37 +++++++++++++++++++++++++++++++++++
 deepin-qt5integration-qt5.13.patch |   11 ++++++++++
 deepin-qt5integration-qt5.14.patch |   23 +++++++++++++++++++++
 3 files changed, 71 insertions(+)

Copied: deepin-qt5integration/repos/community-staging-x86_64/PKGBUILD (from rev 537362, deepin-qt5integration/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-12-12 12:44:55 UTC (rev 537363)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=deepin-qt5integration
+pkgver=5.0.0
+pkgrel=5
+pkgdesc='Qt platform theme integration plugins for DDE'
+arch=('x86_64')
+url="https://github.com/linuxdeepin/qt5integration"
+license=('GPL3')
+depends=('dtkwidget' 'libqtxdg' 'deepin-qt5dxcb-plugin')
+makedepends=('xcb-util-renderutil' 'deepin-file-manager')
+replaces=('qt5dxcb-plugin')
+conflicts=('qt5dxcb-plugin')
+groups=('deepin')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/qt5integration/archive/$pkgver.tar.gz"
+        deepin-qt5integration-qt5.13.patch
+        deepin-qt5integration-qt5.14.patch)
+sha512sums=('bfaa0cf1ca1422da1e645e86275b290c186cb2e26264b3844afd77f31cdc2d1e4ac1b54bcc58a46b336534146865a0310b802f2477f7505f666aed76a2788f00'
+            '345590b7fa94c84adc0c894df8c70931a46769f7af40edf1e5d3623a5327b344be48e17db10791c8f75bf626874f2f031ef221c1218c6b0d889eca3b883c0764'
+            '90640c15a4a94dfd4fd90d219a1ff6872db15390ffb238bfcc1b199cb4a6909b27442360e9309cb3f531c33f1740d7e6e2e65f73f4f38b88e329b45a4020772a')
+
+prepare() {
+  cd qt5integration-$pkgver
+  patch -p1 -i ../deepin-qt5integration-qt5.13.patch # Fix build with Qt 5.13
+  patch -p1 -i ../deepin-qt5integration-qt5.14.patch # Fix build with Qt 5.14
+}
+
+build() {
+  cd qt5integration-$pkgver
+  qmake-qt5 PREFIX=/usr
+  make
+}
+
+package() {
+  cd qt5integration-$pkgver
+  make INSTALL_ROOT="$pkgdir" install
+}

Copied: deepin-qt5integration/repos/community-staging-x86_64/deepin-qt5integration-qt5.13.patch (from rev 537362, deepin-qt5integration/trunk/deepin-qt5integration-qt5.13.patch)
===================================================================
--- community-staging-x86_64/deepin-qt5integration-qt5.13.patch	                        (rev 0)
+++ community-staging-x86_64/deepin-qt5integration-qt5.13.patch	2019-12-12 12:44:55 UTC (rev 537363)
@@ -0,0 +1,11 @@
+diff --git a/dstyleplugin/style.cpp b/dstyleplugin/style.cpp
+index 04e03fe..65be15f 100644
+--- a/dstyleplugin/style.cpp
++++ b/dstyleplugin/style.cpp
+@@ -1418,6 +1418,4 @@ void Style::fillBrush(QPainter *p, const QRect &rect, const QBrush &brush, qreal
+     }
+ }
+ 
+-#include "moc_style.cpp"
+-
+ }

Copied: deepin-qt5integration/repos/community-staging-x86_64/deepin-qt5integration-qt5.14.patch (from rev 537362, deepin-qt5integration/trunk/deepin-qt5integration-qt5.14.patch)
===================================================================
--- community-staging-x86_64/deepin-qt5integration-qt5.14.patch	                        (rev 0)
+++ community-staging-x86_64/deepin-qt5integration-qt5.14.patch	2019-12-12 12:44:55 UTC (rev 537363)
@@ -0,0 +1,23 @@
+diff --git a/platformthemeplugin/qdeepintheme.cpp b/platformthemeplugin/qdeepintheme.cpp
+index e98487b..45e90bc 100644
+--- a/platformthemeplugin/qdeepintheme.cpp
++++ b/platformthemeplugin/qdeepintheme.cpp
+@@ -571,10 +571,18 @@ static bool updateScreenScaleFactors(DThemeSettings *s, const QByteArray &value,
+     }
+ 
+     QHighDpiScaling::updateHighDpiScaling();
++#if QT_VERSION < QT_VERSION_CHECK(5,14,0)
+     qDebug() << QHighDpiScaling::logicalDpi();
++#else
++    qDebug() << QHighDpiScaling::logicalDpi(QGuiApplication::primaryScreen());
++#endif
+     updateScaleLogcailDpi(s->scaleLogicalDpi());
+ 
++#if QT_VERSION < QT_VERSION_CHECK(5,14,0)
+     qDebug() << QHighDpiScaling::logicalDpi();
++#else
++    qDebug() << QHighDpiScaling::logicalDpi(QGuiApplication::primaryScreen());
++#endif
+ 
+     return true;
+ }



More information about the arch-commits mailing list