# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=spice-gtk pkgver=0.41 pkgrel=1 pkgdesc="GTK+ widget for SPICE clients" url="https://www.spice-space.org/spice-gtk.html" arch="all !s390x !riscv64" # no polkit license="LGPL-2.1-or-later" depends="libcap-ng" 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>3 libx11-dev libepoxy-dev libva-dev py3-six py3-parsing perl acl-dev polkit-dev " 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.xz disable-test-relying-on-usb.patch fix-pkgconfig-version.patch " build() { abuild-meson \ -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 --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } 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=" bfd97c98c8bdbc29da0f26c38dfcf75d9f17e5358d4c7fa9c36e4974d0df3ce92409ca568dfc790d43f581d00b94090d9e60154e83220a719d678b596c87fcef spice-gtk-0.41.tar.xz 49af336eb9c4a785b557b3e0e4e9781bccc9fbfd85d2d98bff6bd57c80d9e49f17b27915c720f49da8670f7ab197496f5a7e2a85cc478a9cb0051b0a11a2bf5f disable-test-relying-on-usb.patch a99795b4286ff95161491f04b3cde2b690bb8ab123f5700ff73ec12b6d021485cb4ae699be995f7fa40a3a46d5e6fa4913e72c9f9a3a91822ed76e8d33a072ee fix-pkgconfig-version.patch "