From fd92a7d26cb27db1723375f91d0c058c386053cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=A9rence=20Clastres?= Date: Fri, 3 May 2019 21:17:09 +0200 Subject: [PATCH] Add post-install script to allow gnome-shell to acquire RT scheduling --- .SRCINFO | 5 ++++- PKGBUILD | 11 +++++++---- gnome-shell-performance.install | 8 ++++++++ 3 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 gnome-shell-performance.install diff --git a/.SRCINFO b/.SRCINFO index c722397..f3031f9 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,8 +1,9 @@ pkgbase = gnome-shell-performance pkgdesc = Next generation desktop shell | Attempt to improve the performance by non-upstreamed patches pkgver = 3.32.1+10+g059c729da - pkgrel = 4 + pkgrel = 5 url = https://wiki.gnome.org/Projects/GnomeShell + install = gnome-shell-performance.install arch = x86_64 groups = gnome license = GPL2 @@ -40,10 +41,12 @@ pkgbase = gnome-shell-performance source = git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git source = https://github.com/endlessm/gnome-shell/commit/11ddabfb22aedb3c35abe06d2cf0205f223cca03.diff source = https://gitlab.gnome.org/GNOME/gnome-shell/uploads/4a083c80c81eeb0dd1be64e0e24b5c17/nvidia-background-workaround.patch + source = gnome-shell-performance.install sha256sums = SKIP sha256sums = SKIP sha256sums = 53fb32bfe8432e6309d5b1bcf9c2b7f36693b9141778b823f1d7e9c1d3f39425 sha256sums = 505c90290e5a867692f55d3209a22755bcffb997e7cac59e49b1a78c976d5af9 + sha256sums = 63761e63722ed3ef0aea17fe7c458391ff43b7238790e84213d45dd128ede250 pkgname = gnome-shell-performance diff --git a/PKGBUILD b/PKGBUILD index 1b68eb6..f6284c0 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,14 +5,14 @@ pkgname=gnome-shell-performance pkgver=3.32.1+10+g059c729da -pkgrel=4 +pkgrel=5 pkgdesc="Next generation desktop shell | Attempt to improve the performance by non-upstreamed patches" url="https://wiki.gnome.org/Projects/GnomeShell" arch=(x86_64) license=(GPL2) depends=(accountsservice gcr gjs gnome-bluetooth upower gnome-session gnome-settings-daemon gnome-themes-extra gsettings-desktop-schemas libcanberra-pulse libcroco libgdm libsecret - mutter-781835-workaround nm-connection-editor unzip gstreamer libibus) + mutter-781835-workaround nm-connection-editor unzip gstreamer libibus libpcap) makedepends=(gtk-doc gnome-control-center evolution-data-server gobject-introspection git meson sassc) optdepends=('gnome-control-center: System settings' @@ -20,15 +20,18 @@ optdepends=('gnome-control-center: System settings' groups=(gnome) provides=(gnome-shell gnome-shell=$pkgver) conflicts=(gnome-shell) +install="$pkgname.install" _commit=059c729da0c4deaf71caa7a61a8fb91f7bf882d6 # tags/3.32.1^10 source=("$pkgname::git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=$_commit" "git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git" https://github.com/endlessm/gnome-shell/commit/11ddabfb22aedb3c35abe06d2cf0205f223cca03.diff - https://gitlab.gnome.org/GNOME/gnome-shell/uploads/4a083c80c81eeb0dd1be64e0e24b5c17/nvidia-background-workaround.patch) + https://gitlab.gnome.org/GNOME/gnome-shell/uploads/4a083c80c81eeb0dd1be64e0e24b5c17/nvidia-background-workaround.patch + "$pkgname.install") sha256sums=('SKIP' 'SKIP' '53fb32bfe8432e6309d5b1bcf9c2b7f36693b9141778b823f1d7e9c1d3f39425' - '505c90290e5a867692f55d3209a22755bcffb997e7cac59e49b1a78c976d5af9') + '505c90290e5a867692f55d3209a22755bcffb997e7cac59e49b1a78c976d5af9' + '63761e63722ed3ef0aea17fe7c458391ff43b7238790e84213d45dd128ede250') pkgver() { cd $pkgname diff --git a/gnome-shell-performance.install b/gnome-shell-performance.install new file mode 100644 index 0000000..b9659e6 --- /dev/null +++ b/gnome-shell-performance.install @@ -0,0 +1,8 @@ +post_install() { + setcap CAP_SYS_NICE=+ep usr/bin/gnome-shell +} + +post_upgrade() { + post_install +} +