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

Antonio Rojas arojas at archlinux.org
Wed Jul 8 06:51:03 UTC 2020


    Date: Wednesday, July 8, 2020 @ 06:51:02
  Author: arojas
Revision: 660477

Update git repo

Modified:
  kmplayer/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++-------------------
 1 file changed, 12 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-08 06:47:56 UTC (rev 660476)
+++ PKGBUILD	2020-07-08 06:51:02 UTC (rev 660477)
@@ -14,34 +14,27 @@
 makedepends=(extra-cmake-modules kdesignerplugin kdoctools kinit)
 optdepends=('mplayer: mplayer backend')
 source=("https://download.kde.org/stable/$pkgname/${_pkgver%.*}/$pkgname-$_pkgver.tar.bz2"
-        kmplayer-desktop.patch::"https://cgit.kde.org/kmplayer.git/patch/?id=2126d76b"
-        kmplayer-qt5.9.patch::"https://cgit.kde.org/kmplayer.git/patch/?id=3def6507"
-        kmplayer-qt5.11.patch::"https://cgit.kde.org/kmplayer.git/patch/?id=7dafda63")
+        kmplayer-desktop.patch::"https://invent.kde.org/multimedia/kmplayer/-/commit/2126d76b.patch"
+        kmplayer-qt5.9.patch::"https://invent.kde.org/multimedia/kmplayer/-/commit/3def6507.patch"
+        kmplayer-qt5.11.patch::"https://invent.kde.org/multimedia/kmplayer/-/commit/7dafda63.patch")
 sha256sums=('5e98cea9bd958860d90003d37037172a95ed8b699133e8f1e6033147aaefed73'
-            '81eab18e854415de6bd916e4c516e05c34abacf2981378306f20c6b0302f0667'
-            'de9450abf302d7e4ace23782986e9bec924a033775f77f7f38efd1e73208639b'
-            'cf282ce5c09376feaf32e7aa5fffdb176a85b35816caf0faaf27d18f6bd0250a')
+            '345e03ef0cb2ebb59cfd11b048226aebbccde592d064f404d6eff8c47319363c'
+            '69b3a54e53a652e20beb01b27c8d953e8f3e6e85813d422e1c606fb08cfd3e4e'
+            'f0b2e4cada02712d195f8a88ae5a6ec68ba9b4ab5cbaaaf448e82837dde9b3e9')
 
 prepare() {
-  mkdir -p build
-
   sed -e 's/org.kde.//g' -i kmplayer-desktop.patch
-  cd $pkgname-$_pkgver
-  patch -p1 -i ../kmplayer-desktop.patch # Fix launching from desktop file
-  patch -p1 -i ../kmplayer-qt5.9.patch # Fix build with Qt 5.9
-  patch -p1 -i ../kmplayer-qt5.11.patch # Fix build with Qt 5.11
+  patch -d $pkgname-$_pkgver -p1 -i ../kmplayer-desktop.patch # Fix launching from desktop file
+  patch -d $pkgname-$_pkgver -p1 -i ../kmplayer-qt5.9.patch # Fix build with Qt 5.9
+  patch -d $pkgname-$_pkgver -p1 -i ../kmplayer-qt5.11.patch # Fix build with Qt 5.11
 }
 
 build() {
-  cd build
-  cmake ../$pkgname-$_pkgver \
-    -DCMAKE_INSTALL_PREFIX=/usr \
-    -DCMAKE_INSTALL_LIBDIR=lib \
+  cmake -B build -S $pkgname-$_pkgver \
     -DBUILD_TESTING=OFF
-  make
+  cmake --build build
 }
 
 package() {
-  cd build
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" cmake --install build
 }



More information about the arch-commits mailing list