diff options
Diffstat (limited to 'repo/spice-gtk/spice-gtk.xibuild')
-rw-r--r-- | repo/spice-gtk/spice-gtk.xibuild | 46 |
1 files changed, 46 insertions, 0 deletions
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 +} |