git » knotifications.git » commit 1566bd3

Fix running command on notification events (KDEBUG#389284)

author Antonio Rojas
2018-01-23 17:12:30 UTC
committer Antonio Rojas
2018-01-23 17:12:30 UTC
parent 010c0e19e9ace69533142af8e944784ae7b891f4

Fix running command on notification events (KDEBUG#389284)

PKGBUILD +15 -10

diff --git a/PKGBUILD b/PKGBUILD
index 5e56b52..6d5a5ce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,26 +4,31 @@
 
 pkgname=knotifications
 pkgver=5.42.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Abstraction for system notifications'
-arch=('x86_64')
+arch=(x86_64)
 url='https://community.kde.org/Frameworks'
-license=('LGPL')
-depends=('phonon-qt5' 'libdbusmenu-qt5' 'kwindowsystem' 'kconfig' 'kcodecs' 'kcoreaddons' 'qt5-speech')
-makedepends=('extra-cmake-modules' 'qt5-tools' 'python' 'doxygen')
-groups=('kf5')
-source=("https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig})
+license=(LGPL)
+depends=(phonon-qt5 libdbusmenu-qt5 kwindowsystem kconfig kcodecs kcoreaddons qt5-speech)
+makedepends=(extra-cmake-modules qt5-tools python doxygen)
+groups=(kf5)
+source=("https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig}
+        kdebug-389284.patch::"https://cgit.kde.org/knotifications.git/patch/?id=26904527")
 sha256sums=('ccb969d47cb41cc9dcaf86ae4a9a11b25317ed40336d2115dc048456afe7952b'
-            'SKIP')
+            'SKIP'
+            'b6a7f9e0cb70e0bcbf220bce53f199693fbfc3fb3ecbdcbaec2836d43413dc7a')
 validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
 
 prepare() {
   mkdir -p build
+
+  cd $pkgname-$pkgver
+  patch -p1 -i ../kdebug-389284.patch # Fix running commands on notification events
 }
 
 build() {
   cd build
-  cmake ../${pkgname}-${pkgver} \
+  cmake ../$pkgname-$pkgver \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_INSTALL_LIBDIR=lib \
@@ -34,5 +39,5 @@ build() {
 
 package() {
   cd build
-  make DESTDIR="${pkgdir}" install
+  make DESTDIR="$pkgdir" install
 }