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

Felix Yan felixonmars at archlinux.org
Sun Nov 15 13:52:57 UTC 2020


    Date: Sunday, November 15, 2020 @ 13:52:57
  Author: felixonmars
Revision: 754474

upgpkg: deepin-music 6.0.1.63-1

Modified:
  deepin-music/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-15 13:50:16 UTC (rev 754473)
+++ PKGBUILD	2020-11-15 13:52:57 UTC (rev 754474)
@@ -3,7 +3,7 @@
 # Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
 
 pkgname=deepin-music
-pkgver=6.0.1.54
+pkgver=6.0.1.63
 pkgrel=1
 pkgdesc='Awesome music player with brilliant and tweakful UI Deepin-UI based.'
 arch=('x86_64')
@@ -10,25 +10,27 @@
 url="https://github.com/linuxdeepin/deepin-music"
 license=('GPL3')
 depends=('deepin-qt5integration' 'ffmpeg' 'kcodecs' 'libcue' 'qt5-svg' 'taglib' 'vlc')
-makedepends=('qt5-tools')
+makedepends=('cmake' 'ninja' 'qt5-tools')
 groups=('deepin-extra')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-music/archive/$pkgver.tar.gz"
-        "qt-5.15.patch")
-sha512sums=('2c7419e878c116448c21f58b6f3beac4941b2e47b0ed07be24a83601aaf60f1a997af25ba3f02768e129a8bc8a89f52ccf03ab45c9a485719faefc7fccbb287d'
+        qt-5.15.patch)
+sha512sums=('2b2eca7123c0a316e03f5f7f3d452f2f23da4337bb2a5f8e8208e690f425efab8a441b3b3a9750bae1d3cdf7b810e783318b5f1cd000033e4fa26fb97b79c273'
             '8e9d74a78c010431cf5428561ffb59006658281da9f0856c5dfdd4d854e40f4b03d5799f8b0cce81c08c393edf2c225505e76e3ad010c0a3834edeb3c208e853')
 
 prepare() {
-  cd deepin-music-$pkgver
-  patch -Np1 -i ../qt-5.15.patch
+  cd deepin-music-$pkgver/music
+  patch -Np2 -i "$srcdir"/qt-5.15.patch
+
+  sed -i '/#include <QPainter>/a #include <QPainterPath>' music-player/view/widget/soundpixmapbutton.cpp
 }
 
 build() {
   cd deepin-music-$pkgver
-  qmake-qt5 PREFIX=/usr
-  make
+  cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr .
+  ninja
 }
 
 package() {
   cd deepin-music-$pkgver
-  make INSTALL_ROOT="$pkgdir" install
+  DESTDIR="$pkgdir" ninja install
 }



More information about the arch-commits mailing list