git » libksysguard.git » commit 6f69367

Plasma 5.22.0

author Antonio Rojas
2021-06-08 11:31:11 UTC
committer Antonio Rojas
2021-06-08 11:31:11 UTC
parent 32aa7a84ac2ef0a05514c1c6b5679abfa71d2f6c

Plasma 5.22.0

PKGBUILD +5 -2
libksysguard.install +9 -0

diff --git a/PKGBUILD b/PKGBUILD
index d6ecf48..0538cc1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 # Contributor: Andrea Scarpino <andrea@archlinux.org>
 
 pkgname=libksysguard
-pkgver=5.21.5
+pkgver=5.22.0
 pkgrel=1
 pkgdesc='Library to retrieve information on the current status of computer hardware'
 arch=(x86_64)
@@ -11,9 +11,11 @@ url='https://kde.org/plasma-desktop/'
 license=(LGPL)
 depends=(libxres qt5-webengine kdeclarative knewstuff)
 makedepends=(extra-cmake-modules kdoctools qt5-tools)
+conflicts=('ksysguard<5.21.90')
 groups=(plasma)
 source=(https://download.kde.org/stable/plasma/$pkgver/$pkgname-$pkgver.tar.xz{,.sig})
-sha256sums=('5ff8c687a9d245d28ec4b92c019d2234cd931796c619ebb096de6e49cd18ebe8'
+install=libksysguard.install
+sha256sums=('a2d3973aaf7d5c4a1cb6dd463ec8183dd4e9a6c6b851df4b8824f8dd562607a9'
             'SKIP')
 validpgpkeys=('2D1D5B0588357787DE9EE225EC94D18F7F05997E'  # Jonathan Riddell <jr@jriddell.org>
               '0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D'  # Bhushan Shah <bshah@kde.org>
@@ -22,6 +24,7 @@ validpgpkeys=('2D1D5B0588357787DE9EE225EC94D18F7F05997E'  # Jonathan Riddell <jr
 
 build() {
   cmake -B build -S $pkgname-$pkgver \
+    -DCMAKE_INSTALL_LIBEXECDIR=lib \
     -DBUILD_TESTING=OFF
   cmake --build build
 }
diff --git a/libksysguard.install b/libksysguard.install
new file mode 100644
index 0000000..891b1d4
--- /dev/null
+++ b/libksysguard.install
@@ -0,0 +1,9 @@
+post_install() {
+# this is executed by make install, but doesn't work since setcap can only be run as root
+  setcap CAP_NET_RAW=+ep /usr/lib/ksysguard/ksgrd_network_helper
+}
+
+post_upgrade() {
+  post_install
+}
+