git » phonon.git » commit 5ebef91

Add debug symbols

author Antonio Rojas
2022-02-02 14:28:45 UTC
committer Antonio Rojas
2022-02-02 14:28:45 UTC
parent 828fe33cdb8bd72ba3ada7b5ef1e30d6a05877b5

Add debug symbols

PKGBUILD +7 -12

diff --git a/PKGBUILD b/PKGBUILD
index e72d25b..60cdcdd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,32 +3,27 @@
 
 pkgbase=phonon
 pkgname=(phonon-qt5)
-pkgdesc="The multimedia framework by KDE"
+pkgdesc='The multimedia framework by KDE'
 pkgver=4.11.1
-pkgrel=2
+pkgrel=3
 arch=(x86_64)
 url='https://community.kde.org/Phonon'
 license=(LGPL)
 depends=(libpulse qt5-base)
 optdepends=('pulseaudio: PulseAudio support' 'qt5-tools: Designer plugin')
 makedepends=(extra-cmake-modules qt5-tools)
-source=("https://download.kde.org/stable/$pkgbase/$pkgver/$pkgbase-$pkgver.tar.xz"{,.sig})
+source=(https://download.kde.org/stable/$pkgbase/$pkgver/$pkgbase-$pkgver.tar.xz{,.sig})
 sha256sums=('b4431ea2600df8137a717741ad9ebc7f7ec1649fa3e138541d8f42597144de2d'
             'SKIP')
 validpgpkeys=(CB9387521E1EE0127DA804843FDBB55084CC5D84) # Harald Sitter <sitter@kde.org>
-
-prepare() {
-  mkdir -p build
-}
+options=(debug)
 
 build() {
-  cd build
-  cmake ../$pkgbase-$pkgver
-  make
+  cmake -B build -S $pkgbase-$pkgver
+  cmake --build build
 }
 
 package_phonon-qt5(){
   depends+=(phonon-qt5-backend)
-  cd build
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" cmake --install build
 }