[arch-commits] Commit in deepin-calendar/trunk (PKGBUILD dde-calendar-icon.patch)

Balló György bgyorgy at archlinux.org
Sat Aug 1 12:04:42 UTC 2020


    Date: Saturday, August 1, 2020 @ 12:04:42
  Author: bgyorgy
Revision: 667478

upgpkg: deepin-calendar 5.7.0.4-2: Install the application icon

Added:
  deepin-calendar/trunk/dde-calendar-icon.patch
Modified:
  deepin-calendar/trunk/PKGBUILD

-------------------------+
 PKGBUILD                |   14 ++++++++++----
 dde-calendar-icon.patch |   24 ++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-01 11:54:56 UTC (rev 667477)
+++ PKGBUILD	2020-08-01 12:04:42 UTC (rev 667478)
@@ -4,16 +4,18 @@
 
 pkgname=deepin-calendar
 pkgver=5.7.0.4
-pkgrel=1
+pkgrel=2
 pkgdesc='Calendar for Deepin Desktop Environment'
 arch=('x86_64')
 url="https://github.com/linuxdeepin/dde-calendar"
 license=('GPL3')
-depends=('deepin-qt5integration')
+depends=('deepin-qt5integration' 'hicolor-icon-theme')
 makedepends=('cmake' 'ninja' 'qt5-tools')
 groups=('deepin')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/dde-calendar/archive/$pkgver.tar.gz")
-sha512sums=('5102c1298dc7395b741729041fed26cf6012c5235c67b5bbac2c90afbbd2a806d0f290a44afa3c59a4da9cf9f088281bd1f348a64208ac53e64312dcc27cff03')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/dde-calendar/archive/$pkgver.tar.gz"
+        "dde-calendar-icon.patch")
+sha512sums=('5102c1298dc7395b741729041fed26cf6012c5235c67b5bbac2c90afbbd2a806d0f290a44afa3c59a4da9cf9f088281bd1f348a64208ac53e64312dcc27cff03'
+            '40ffae29fcbd386512dac9b91c39219b420b349f1f5facc254467b9e5407091886c8d0ed0979d566ba79539c093464cbc7719da7268c9745bc30273f9d7db7e2')
 
 prepare() {
   cd dde-calendar-$pkgver
@@ -24,6 +26,10 @@
   # Not included in https://github.com/linuxdeepin/dde-calendar/pull/30 yet
   sed -i '/include <QPainter>/a #include <QPainterPath>' src/schcedulesearchview.cpp src/daymonthview.cpp src/weekheadview.cpp src/customframe.cpp
   sed -i '/include <QMessageBox>/a #include <QWheelEvent>' src/yearwindow.cpp
+
+  # Install the application icon
+  # https://github.com/linuxdeepin/dde-calendar/pull/31
+  patch -Np1 -i ../dde-calendar-icon.patch
 }
 
 build() {

Added: dde-calendar-icon.patch
===================================================================
--- dde-calendar-icon.patch	                        (rev 0)
+++ dde-calendar-icon.patch	2020-08-01 12:04:42 UTC (rev 667478)
@@ -0,0 +1,24 @@
+From 97129644e1fdd56a9254083e22430308ff0c9db6 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor at gmail.com>
+Date: Sat, 1 Aug 2020 13:54:20 +0200
+Subject: [PATCH] Install the application icon
+
+---
+ CMakeLists.txt | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 863aa2f..946ba53 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -102,8 +102,8 @@ install(TARGETS dde-calendar DESTINATION bin)
+ 
+ file(GLOB APP_QM_FILES "translations/*.qm")
+ 
+-#install(FILES /usr/share/icons/bloom/apps/96/dde-calendar.svg
+-#        DESTINATION /share/icons/hicolor/scalable/apps/)
++install(FILES assets/resources/icon/dde-calendar.svg
++        DESTINATION share/icons/hicolor/scalable/apps)
+ install(FILES ${APP_QM_FILES} DESTINATION share/dde-calendar/translations)
+ install(FILES ${APP_DESKTOP} DESTINATION share/applications)
+ install(FILES ${APP_SERVICE} DESTINATION share/dbus-1/services)



More information about the arch-commits mailing list