# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=spice-gtk pkgver=0.37 pkgrel=1 pkgdesc="A GTK+ widget for SPICE clients" url="http://spice-space.org/page/Spice-Gtk" arch="all" license="LGPL-2.0-or-later" makedepends=" meson gstreamer-dev gst-plugins-base-dev spice-protocol json-glib-dev gtk+3.0-dev usbredir-dev libusb-dev asciidoc lz4-dev opus-dev glib-dev cyrus-sasl-dev gobject-introspection-dev vala libjpeg-turbo-dev cairo-dev zlib-dev pixman-dev openssl-dev libx11-dev libepoxy-dev libva-dev py3-six py3-parsing perl " options="suid" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-tools spice-glib:glib" source="https://www.spice-space.org/download/gtk/spice-gtk-$pkgver.tar.bz2 disable-test-relying-on-usb.patch fix-pkgconfig-version.patch " build() { meson \ --prefix=/usr \ -Dgtk=enabled \ -Dwebdav=disabled \ -Dpulse=disabled \ -Dbuiltin-mjpeg=false \ -Dusbredir=enabled \ -Dpolkit=disabled \ -Dpie=true \ -Dintrospection=enabled \ -Dvapi=enabled \ -Dlz4=enabled \ -Dsasl=enabled \ -Dcelt051=disabled \ -Dopus=enabled \ -Dsmartcard=disabled \ -Dgtk_doc=disabled \ -Dcoroutine=gthread \ . output ninja -C output } check() { ninja -C output test } package() { DESTDIR="$pkgdir" ninja -C output install } tools() { pkgdesc="$pkgdesc (tooling)" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } glib() { pkgdesc="$pkgdesc (glib library)" mkdir -p "$subpkgdir"/usr/lib \ "$subpkgdir"/usr/lib/girepository-1.0/ mv "$pkgdir"/usr/lib/*-glib-*.so* \ "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/girepository-1.0/SpiceClientGLib-*.typelib \ "$subpkgdir"/usr/lib/girepository-1.0/ } sha512sums="a0a20bc6f25337d86e57fe1fc9586c4cc84457fc8c38cdcc5a728990a69018da0fca3ab5aa63349786b5a7508c82b716c94803eefb3495cffb7df4526db2d029 spice-gtk-0.37.tar.bz2 fcb2eed3ccfdba422338aa292c56b61d5aa0b83e60feed8b042b44281d0090f7ec82a853332cf5d36338b5cc097031f5af25457866f11f2ed8a4c92f4372b863 disable-test-relying-on-usb.patch 781ff842527cb23b894c45765035628406f487e4696900561de3d804704bb31f14ccbcd5f48303efcf43734e545643dbb011d3c9dbd46c1962a2307cef138350 fix-pkgconfig-version.patch"