[arch-commits] Commit in spice-gtk/trunk (PKGBUILD spice-gtk.install)

Antonio Rojas arojas at archlinux.org
Sun Jan 24 20:57:24 UTC 2021


    Date: Sunday, January 24, 2021 @ 20:57:23
  Author: arojas
Revision: 829164

Set capabilities in post-install, it doesn't work at build time since makepkg doesn't run as root (FS#69428)

Added:
  spice-gtk/trunk/spice-gtk.install
Modified:
  spice-gtk/trunk/PKGBUILD

-------------------+
 PKGBUILD          |    3 ++-
 spice-gtk.install |    8 ++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-24 20:57:19 UTC (rev 829163)
+++ PKGBUILD	2021-01-24 20:57:23 UTC (rev 829164)
@@ -6,7 +6,7 @@
 
 pkgname=spice-gtk
 pkgver=0.39
-pkgrel=1
+pkgrel=2
 pkgdesc="GTK+ client library for SPICE"
 arch=('x86_64')
 url="https://www.spice-space.org/"
@@ -16,6 +16,7 @@
 provides=("spice-glib=$pkgver" "spice-gtk3=$pkgver")
 replaces=('spice-glib' 'spice-gtk3')
 source=("https://www.spice-space.org/download/gtk/$pkgname-$pkgver.tar.xz"{,.sig})
+install=spice-gtk.install
 sha256sums=('23acbee197eaaec9bce6e6bfd885bd8f79708332639243ff04833020865713cd'
             'SKIP')
 validpgpkeys=('206D3B352F566F3B0E6572E997D9123DE37A484F') # Victor Toso de Carvalho <me at victortoso.com>

Added: spice-gtk.install
===================================================================
--- spice-gtk.install	                        (rev 0)
+++ spice-gtk.install	2021-01-24 20:57:23 UTC (rev 829164)
@@ -0,0 +1,8 @@
+post_install() {
+# this is executed by make install, but doesn't work since setcap can only be run as root
+  setcap CAP_FOWNER=+ep /usr/lib/spice-client-glib-usb-acl-helper
+}
+
+post_upgrade() {
+  post_install
+}



More information about the arch-commits mailing list