# Maintainer: Joan Bruguera Micó # Maintainer: Balló György # Maintainer: Brett Cornwall # Contributor: Sergej Pupykin # Contributor: Stefano Facchini # Contributor: Jonathan Lestrelin # Contributor: Lucio Zara pkgname=spice-gtk pkgver=0.39 pkgrel=4 pkgdesc="GTK+ client library for SPICE" arch=('x86_64') url="https://www.spice-space.org/" license=('LGPL2.1') depends=( 'gst-plugins-base' 'gst-plugins-good' 'libcacard' 'libgtk-3.so' 'libjpeg.so' 'libopus.so' 'phodav' 'polkit' 'usbredir' ) makedepends=( 'gobject-introspection' 'meson' 'spice-protocol' 'usbutils' 'vala' 'wayland-protocols' ) provides=("spice-glib=$pkgver" "spice-gtk3=$pkgver") replaces=('spice-glib' 'spice-gtk3') source=("https://www.spice-space.org/download/gtk/$pkgname-$pkgver.tar.xz"{,.sig}) install=spice-gtk.install sha256sums=('23acbee197eaaec9bce6e6bfd885bd8f79708332639243ff04833020865713cd' 'SKIP') validpgpkeys=('206D3B352F566F3B0E6572E997D9123DE37A484F') # Victor Toso de Carvalho build() { arch-meson $pkgname-$pkgver build ninja -C build } check() { meson test -C build --print-errorlogs } package() { DESTDIR="$pkgdir" meson install -C build } # Support for extra mouse buttons (typically "Back" and "Forward" in e.g. Firefox) by Kevin Pouget: # https://lists.freedesktop.org/archives/spice-devel/2020-May/051651.html # His patches have been rebased on top of this commit to spice-protocol: # https://gitlab.freedesktop.org/spice/spice-protocol/-/commit/cbe7b2c28543f4c5e57d1db1b753b73a64104162 provides+=(spice-gtk) conflicts+=(spice-gtk) source+=("spice-extra-mouse-buttons.patch") sha256sums+=('3f5129e56b5816d5e5ce0a3cc2e875cc175f1be88eed6495cc1b85b1068bcf4a') _pkgname=$pkgname pkgname+="-extra-mouse-buttons" pkgrel="$pkgrel.4" pkgdesc+=" (with support for extra mouse buttons)" eval "$(declare -f build | sed 's/$pkgname/$_pkgname/g')" prepare() { echo '******************************' 1>&2 echo '* THIS PACKAGE IS DEPRECATED *' 1>&2 echo '******************************' 1>&2 echo 'Side mouse buttons are now supported on the official Arch spice-gtk package.' 1>&2 echo "Please replace $pkgname with $_pkgname." 1>&2 echo 'This AUR package will be deleted soon.' 1>&2 exit 1 patch -d"$_pkgname-$pkgver" -Np1 -i "${srcdir}"/spice-extra-mouse-buttons.patch }