Date: Tuesday, March 7, 2023 @ 14:36:25
  Author: bgyorgy
Revision: 1416707

Update dependencies

- Add link-level dependencies
- Move spice-protocol dependency from makedepends to depends as it's needed by 
the pkg-config file
- Remove unneeded gobject-introspection dependency from pkg-config file

Added:
  spice-gtk/trunk/remove-gobject-introspection-dep.patch
Modified:
  spice-gtk/trunk/PKGBUILD

----------------------------------------+
 PKGBUILD                               |   40 +++++++++++++++++++++++++------
 remove-gobject-introspection-dep.patch |   25 +++++++++++++++++++
 2 files changed, 58 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-07 14:15:31 UTC (rev 1416706)
+++ PKGBUILD    2023-03-07 14:36:25 UTC (rev 1416707)
@@ -7,27 +7,46 @@
 
 pkgname=spice-gtk
 pkgver=0.42
-pkgrel=1
+pkgrel=2
 pkgdesc="GTK+ client library for SPICE"
 arch=('x86_64')
 url="https://www.spice-space.org/";
 license=('LGPL2.1')
 depends=(
+    'acl'
+    'cairo'
+    'gdk-pixbuf2'
+    'glib2'
     'gst-plugins-base'
     'gst-plugins-good'
+    'gstreamer'
+    'gtk3'
+    'json-glib'
     'libcacard'
-    'libgtk-3.so'
-    'libjpeg.so'
-    'libopus.so'
+    'libcap-ng'
+    'libepoxy'
+    'libjpeg-turbo'
+    'libsasl'
+    'libsoup3'
+    'libusb'
+    'libx11'
+    'lz4'
+    'openssl'
+    'opus'
     'phodav'
+    'pixman'
     'polkit'
+    'spice-gtk'
+    'spice-protocol'
     'usbredir'
+    'wayland'
+    'zlib'
 )
 makedepends=(
     'gobject-introspection'
     'meson'
+    'python-six'
     'python-pyparsing'
-    'spice-protocol'
     'usbutils'
     'vala'
     'wayland-protocols'
@@ -35,11 +54,18 @@
 provides=("spice-glib=$pkgver" "spice-gtk3=$pkgver")
 replaces=('spice-glib' 'spice-gtk3')
 install=spice-gtk.install
-source=("https://www.spice-space.org/download/gtk/$pkgname-$pkgver.tar.xz"{,.sig})
+source=("https://www.spice-space.org/download/gtk/$pkgname-$pkgver.tar.xz"{,.sig}
+        'remove-gobject-introspection-dep.patch')
 sha256sums=('9380117f1811ad1faa1812cb6602479b6290d4a0d8cc442d44427f7f6c0e7a58'
-            'SKIP')
+            'SKIP'
+            '1a016e9c0a0d0b355993b1b934d02d516c4626a262c2b0048551e00db316cb70')
 validpgpkeys=('206D3B352F566F3B0E6572E997D9123DE37A484F') # Victor Toso de 
Carvalho <[email protected]>
 
+prepare() {
+  # https://gitlab.freedesktop.org/spice/spice-gtk/-/merge_requests/117
+  patch -Np1 -d $pkgname-$pkgver -i ../remove-gobject-introspection-dep.patch
+}
+
 build() {
   arch-meson $pkgname-$pkgver build
   meson compile -C build

Added: remove-gobject-introspection-dep.patch
===================================================================
--- remove-gobject-introspection-dep.patch                              (rev 0)
+++ remove-gobject-introspection-dep.patch      2023-03-07 14:36:25 UTC (rev 
1416707)
@@ -0,0 +1,25 @@
+From 3bd8aac326714ed3641a66793b69d9355818df1a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <[email protected]>
+Date: Tue, 7 Mar 2023 14:00:25 +0000
+Subject: [PATCH] Remove dependency on gobject-introspection-1.0
+
+The library and header files of gobject-introspection-1.0 are not used by 
spice-gtk itself. Only the 'g-ir-scanner' and 'g-ir-compiler' tools are used 
during the build. Adding it as dependency to library and pkgconfig file is not 
needed.
+---
+ meson.build | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index 341f5fb5..44017e55 100644
+--- a/meson.build
++++ b/meson.build
+@@ -345,7 +345,6 @@ summary_info += {'coroutine': spice_gtk_coroutine}
+ spice_gtk_has_introspection = false
+ d = dependency('gobject-introspection-1.0', version : '>= 0.94', required : 
get_option('introspection'))
+ if d.found()
+-  spice_glib_deps += d
+   spice_gtk_has_introspection = true
+ endif
+ summary_info += {'introspection': spice_gtk_has_introspection}
+-- 
+GitLab
+

Reply via email to