[arch-commits] Commit in deepin-control-center/trunk (2 files)

Felix Yan felixonmars at archlinux.org
Wed Oct 25 14:31:31 UTC 2017


    Date: Wednesday, October 25, 2017 @ 14:31:30
  Author: felixonmars
Revision: 264274

upgpkg: deepin-control-center 4.2.5.11-1

Added:
  deepin-control-center/trunk/fix-disable-sys-update.patch
Modified:
  deepin-control-center/trunk/PKGBUILD

------------------------------+
 PKGBUILD                     |   13 ++++++++++---
 fix-disable-sys-update.patch |   24 ++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-10-25 13:56:14 UTC (rev 264273)
+++ PKGBUILD	2017-10-25 14:31:30 UTC (rev 264274)
@@ -4,7 +4,7 @@
 # Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
 
 pkgname=deepin-control-center
-pkgver=4.2.5.10
+pkgver=4.2.5.11
 pkgrel=1
 pkgdesc='New control center for linux deepin'
 arch=('i686' 'x86_64')
@@ -17,9 +17,16 @@
 conflicts=('dde-control-center' 'dde-dock-applets')
 replaces=('dde-control-center' 'dde-dock-applets')
 groups=('deepin')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/dde-control-center/archive/$pkgver.tar.gz")
-sha512sums=('d1e0314db34a380c82202c4a9891e2b2242539f0307b76b6491d4c2c842ec8cd3cc76af7548b838b6dae172b561b73cd0f1ec16c60274abb8356c2c3b684606b')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/dde-control-center/archive/$pkgver.tar.gz"
+        fix-disable-sys-update.patch)
+sha512sums=('25a0a59916dc8747babaf4ed828c99b90867529c648c24496324d31fc9ad71e6a84dab8a561810dc56f51b1ff4baa9e8187c41ecfed04ebbf31fcf2b0d4ff1f8'
+            '119b4d6ad6cac8aa5f71a30f12180987f8c613987c055f185f24b3f8c0184828d2e46bf5edb74fd1c8a3c2a6d677aabfcf113e999aa9d78732823cca0de1db5b')
 
+prepare() {
+  cd dde-control-center-$pkgver
+  patch -p1 -i ../fix-disable-sys-update.patch
+}
+
 build() {
   cd dde-control-center-$pkgver
   qmake-qt5 QMAKE_CFLAGS_ISYSTEM= PREFIX=/usr DISABLE_SYS_UPDATE=YES

Added: fix-disable-sys-update.patch
===================================================================
--- fix-disable-sys-update.patch	                        (rev 0)
+++ fix-disable-sys-update.patch	2017-10-25 14:31:30 UTC (rev 264274)
@@ -0,0 +1,24 @@
+commit 19a33aa0fb69cb66567dce3e86565ca1f422b177
+Author: Felix Yan <felixonmars at archlinux.org>
+Date:   Wed Oct 25 22:18:56 2017 +0800
+
+    fix: build with DISABLE_SYS_UPDATE specified
+    
+    Change-Id: Ib744235d7809624fca7409ef9c445dded1158ba2
+
+diff --git a/frame/mainwidget.cpp b/frame/mainwidget.cpp
+index c4d88be2..61f1d1eb 100644
+--- a/frame/mainwidget.cpp
++++ b/frame/mainwidget.cpp
+@@ -246,7 +246,11 @@ void MainWidget::refershTimedate()
+ 
+ void MainWidget::updateMPRISEnable()
+ {
++#ifndef DISABLE_SYS_UPDATE
+     const bool update_visible = m_updateNotifier->isVisible();
++#else
++    const bool update_visible = false;
++#endif
+     const bool is_768 = qApp->primaryScreen()->geometry().height() == 768;
+ 
+     m_quickSettingsPanel->setMPRISEnable(!(update_visible && is_768));



More information about the arch-commits mailing list