[arch-commits] Commit in deepin-calendar/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri May 8 08:27:36 UTC 2020


    Date: Friday, May 8, 2020 @ 08:27:35
  Author: felixonmars
Revision: 625553

upgpkg: deepin-calendar 5.6.2-1

Modified:
  deepin-calendar/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-08 08:23:39 UTC (rev 625552)
+++ PKGBUILD	2020-05-08 08:27:35 UTC (rev 625553)
@@ -3,7 +3,7 @@
 # Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
 
 pkgname=deepin-calendar
-pkgver=5.0.1
+pkgver=5.6.2
 pkgrel=1
 pkgdesc='Calendar for Deepin Desktop Environment'
 arch=('x86_64')
@@ -10,18 +10,25 @@
 url="https://github.com/linuxdeepin/dde-calendar"
 license=('GPL3')
 depends=('deepin-qt5integration')
-makedepends=('cmake' 'deepin-gettext-tools' 'qt5-tools')
+makedepends=('deepin-gettext-tools' 'qt5-tools')
 groups=('deepin')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/dde-calendar/archive/$pkgver.tar.gz")
-sha512sums=('ab52c39f53cd7e5b81a62925ce8ca624a3def5d42537cde743ee401d91d408cfb962801a4f6847c7eff0fae148e635a98aa15c5cd2305c993ae1f4d8048ecc75')
+sha512sums=('c486b66a57f0f19abc8876f7eebf74b3fce1247b7f8c3b56161c72d81674fa73b758f64566f95d4bc9647c7feb76e0da2a4ddd1728b768ea575ddcf018091902')
 
+prepare() {
+  cd dde-calendar-$pkgver
+  sed -i '/QMenuBar/a #include <QMouseEvent>/' src/yearwindow.cpp
+  sed -i '/<QQueue>/a #include <QMouseEvent>/' src/daymonthview.cpp
+  sed -i '/<QStylePainter>/a #include <QMouseEvent>/' src/schcedulesearchview.cpp
+}
+
 build() {
   cd dde-calendar-$pkgver
-  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
+  qmake-qt5 PREFIX=/usr
   make
 }
 
 package() {
   cd dde-calendar-$pkgver
-  make DESTDIR="$pkgdir" install
+  make INSTALL_ROOT="$pkgdir" install
 }


More information about the arch-commits mailing list