From c1d3da9ca87c414100b1cb969e36b8d7d05b9a74 Mon Sep 17 00:00:00 2001
From: davidovski <david@davidovski.xyz>
Date: Wed, 10 Aug 2022 09:16:34 +0100
Subject: added ovmf, lolcat, spice, and squashfstools

---
 repo/spice-gtk/disable-test-relying-on-usb.patch | 22 ++++++++++++
 repo/spice-gtk/fix-pkgconfig-version.patch       | 13 +++++++
 repo/spice-gtk/spice-gtk.xibuild                 | 46 ++++++++++++++++++++++++
 3 files changed, 81 insertions(+)
 create mode 100644 repo/spice-gtk/disable-test-relying-on-usb.patch
 create mode 100644 repo/spice-gtk/fix-pkgconfig-version.patch
 create mode 100644 repo/spice-gtk/spice-gtk.xibuild

(limited to 'repo/spice-gtk')

diff --git a/repo/spice-gtk/disable-test-relying-on-usb.patch b/repo/spice-gtk/disable-test-relying-on-usb.patch
new file mode 100644
index 0000000..2a8e283
--- /dev/null
+++ b/repo/spice-gtk/disable-test-relying-on-usb.patch
@@ -0,0 +1,22 @@
+diff --git a/tests/meson.build b/tests/meson.build
+index 6c8077622d..9b77e84be9 100644
+--- a/tests/meson.build
++++ b/tests/meson.build
+@@ -1,7 +1,6 @@
+ tests_sources = [
+   'util.c',
+   'coroutine.c',
+-  'session.c',
+   'uri.c',
+   'file-transfer.c',
+ ]
+@@ -10,9 +9,6 @@
+   tests_sources += 'pipe.c'
+ endif
+ 
+-if spice_gtk_has_usbredir
+-  tests_sources += 'cd-emu.c'
+-endif
+ 
+ if spice_gtk_has_polkit
+   tests_sources += [
diff --git a/repo/spice-gtk/fix-pkgconfig-version.patch b/repo/spice-gtk/fix-pkgconfig-version.patch
new file mode 100644
index 0000000..687e3b4
--- /dev/null
+++ b/repo/spice-gtk/fix-pkgconfig-version.patch
@@ -0,0 +1,13 @@
+diff --git a/meson.build b/meson.build
+index 8c6288f..caef2d4 100644
+--- a/meson.build
++++ b/meson.build
+@@ -2,7 +2,7 @@
+ # project definition
+ #
+ project('spice-gtk', 'c',
+-         version : run_command('build-aux/git-version-gen', '@0@/.tarball-version'.format(meson.source_root()), check : true).stdout().strip(),
++         version : '0.38',
+          license : 'LGPLv2.1',
+          meson_version : '>= 0.49',
+          default_options : ['buildtype=debugoptimized',
diff --git a/repo/spice-gtk/spice-gtk.xibuild b/repo/spice-gtk/spice-gtk.xibuild
new file mode 100644
index 0000000..4cdf6b7
--- /dev/null
+++ b/repo/spice-gtk/spice-gtk.xibuild
@@ -0,0 +1,46 @@
+#!/bin/sh
+
+NAME="spice-gtk"
+DESC="GTK+ widget for SPICE clients"
+
+MAKEDEPS=" meson gstreamer gst-plugins-base spice-protocol json-glib gtk3 usbredir libusb asciidoc lz4 opus glib libsasl gobject-introspection vala libjpeg-turbo cairo zlib pixman openssl libx11 libepoxy libva python-six python-parsing perl acl polkit"
+
+PKG_VER=0.40
+SOURCE="https://www.spice-space.org/download/gtk/spice-gtk-$PKG_VER.tar.xz"
+
+ADDITIONAL="
+disable-test-relying-on-usb.patch
+fix-pkgconfig-version.patch
+"
+
+prepare () {
+    apply_patches
+}
+
+build() {
+	meson --prefix=/usr \
+		-Dgtk=enabled \
+		-Dwebdav=disabled \
+		-Dbuiltin-mjpeg=false \
+		-Dusbredir=enabled \
+		-Dpolkit=enabled\
+		-Dpie=true \
+		-Dintrospection=enabled \
+		-Dvapi=enabled \
+		-Dlz4=enabled \
+		-Dsasl=enabled \
+		-Dopus=enabled \
+		-Dsmartcard=disabled \
+		-Dgtk_doc=disabled \
+		-Dcoroutine=gthread \
+		. output
+	meson compile ${JOBS:+-j ${JOBS}} -C output
+}
+
+check() {
+	meson test --no-rebuild -v -C output
+}
+
+package() {
+	DESTDIR="$PKG_DEST" meson install --no-rebuild -C output
+}
-- 
cgit v1.2.1