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

Felix Yan felixonmars at archlinux.org
Wed Jul 8 11:44:06 UTC 2020


    Date: Wednesday, July 8, 2020 @ 11:44:06
  Author: felixonmars
Revision: 661716

switch to ninja

Modified:
  deepin-screenshot/trunk/PKGBUILD

----------+
 PKGBUILD |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-08 11:43:58 UTC (rev 661715)
+++ PKGBUILD	2020-07-08 11:44:06 UTC (rev 661716)
@@ -10,7 +10,7 @@
 url="https://github.com/linuxdeepin/deepin-screenshot"
 license=('GPL3')
 depends=('deepin-qt5integration' 'dtkwm' 'deepin-turbo')
-makedepends=('cmake' 'qt5-tools')
+makedepends=('cmake' 'ninja' 'qt5-tools')
 groups=('deepin-extra')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-screenshot/archive/$pkgver.tar.gz"
         deepin-screenshot-no-notification.patch)
@@ -20,17 +20,18 @@
 prepare() {
   cd deepin-screenshot-$pkgver
   patch -p1 -i ../deepin-screenshot-no-notification.patch
+  sed -i '1i #include <QPainterPath>' src/widgets/shapeswidget.cpp
 }
 
 build() {
   cd deepin-screenshot-$pkgver
-  cmake . -DCMAKE_INSTALL_PREFIX=/usr
-  make
+  cmake . -GNinja -DCMAKE_INSTALL_PREFIX=/usr
+  ninja
 }
 
 package() {
   cd deepin-screenshot-$pkgver
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" ninja install
 
   rm "$pkgdir"/usr/share/dbus-1/services/com.deepin.Screenshot.service
 }



More information about the arch-commits mailing list