Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / kwin


Commits:
1db64040 by Antonio Rojas at 2026-01-11T11:35:40+01:00
upgpkg: 6.5.4-5: set capabitilies on install()

Fixes #15

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- − kwin.install


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,9 +1,8 @@
 pkgbase = kwin
        pkgdesc = An easy to use, but flexible, Wayland compositor
        pkgver = 6.5.4
-       pkgrel = 4
+       pkgrel = 5
        url = https://kde.org/plasma-desktop/
-       install = kwin.install
        arch = x86_64
        groups = plasma
        license = LGPL-2.0-or-later


=====================================
PKGBUILD
=====================================
@@ -5,7 +5,7 @@
 pkgname=kwin
 pkgver=6.5.4
 _dirver=$(echo $pkgver | cut -d. -f1-3)
-pkgrel=4
+pkgrel=5
 pkgdesc='An easy to use, but flexible, Wayland compositor'
 arch=(x86_64)
 url='https://kde.org/plasma-desktop/'
@@ -79,7 +79,6 @@ optdepends=('plasma-keyboard: virtual keyboard')
 groups=(plasma)
 
source=(https://download.kde.org/stable/plasma/$_dirver/$pkgname-$pkgver.tar.xz{,.sig}
         https://invent.kde.org/plasma/kwin/-/commit/ef450432.patch)
-install=$pkgname.install
 sha256sums=('258443f72180cf5a8141b440bb51a714a2e67e30867736290793ce50d7bb1d70'
             'SKIP'
             '4e35db494b436d2d4dc35eb467a90d93db2279561be3fc2c3f4a74a64ffa6081')
@@ -102,4 +101,5 @@ build() {
 
 package() {
   DESTDIR="$pkgdir" cmake --install build
+  setcap CAP_SYS_NICE=+ep "$pkgdir"/usr/bin/kwin_wayland
 }


=====================================
kwin.install deleted
=====================================
@@ -1,12 +0,0 @@
-post_install() {
-# this is executed by make install, but doesn't work since setcap can only be 
run as root
-  setcap CAP_SYS_NICE=+ep /usr/bin/kwin_wayland
-}
-
-post_upgrade() {
-  post_install
-
-  if [ $(vercmp "$2" "6.4.0") -le 0 ]; then
-    echo "The KWin X window manager has been split to a separate kwin-x11 
package."
-  fi  
-}



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/kwin/-/commit/1db640403e9d961091b4deb744c2cae1b04bb368

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/kwin/-/commit/1db640403e9d961091b4deb744c2cae1b04bb368
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to