archrelease: copy trunk to community-any
[arch-community.git] / spice-gtk / trunk / PKGBUILD
bloba4703d88bebbecc3a5aff58c6ef535591cba3580
1 # Maintainer: Brett Cornwall <ainola@archlinux.org>
2 # Contributor: Balló György <ballogyor+arch at gmail dot com>
3 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
4 # Contributor: Stefano Facchini <stefano.facchini@gmail.com>
5 # Contributor: Jonathan Lestrelin <zanko@daemontux.org>
6 # Contributor: Lucio Zara <pennega@gmail.com>
8 pkgname=spice-gtk
9 pkgver=0.42
10 pkgrel=3
11 pkgdesc="GTK+ client library for SPICE"
12 arch=('x86_64')
13 url="https://www.spice-space.org/"
14 license=('LGPL2.1')
15 depends=(
16     'acl'
17     'cairo'
18     'gdk-pixbuf2'
19     'glib2'
20     'gst-plugins-base'
21     'gst-plugins-good'
22     'gstreamer'
23     'gtk3'
24     'json-glib'
25     'libcacard'
26     'libcap-ng'
27     'libepoxy'
28     'libjpeg-turbo'
29     'libsasl'
30     'libsoup3'
31     'libusb'
32     'libx11'
33     'lz4'
34     'openssl'
35     'opus'
36     'phodav'
37     'pixman'
38     'polkit'
39     'spice-protocol'
40     'usbredir'
41     'wayland'
42     'zlib'
44 makedepends=(
45     'gobject-introspection'
46     'meson'
47     'python-six'
48     'python-pyparsing'
49     'usbutils'
50     'vala'
51     'wayland-protocols'
53 provides=("spice-glib=$pkgver" "spice-gtk3=$pkgver")
54 replaces=('spice-glib' 'spice-gtk3')
55 install=spice-gtk.install
56 source=("https://www.spice-space.org/download/gtk/$pkgname-$pkgver.tar.xz"{,.sig}
57         'remove-gobject-introspection-dep.patch')
58 sha256sums=('9380117f1811ad1faa1812cb6602479b6290d4a0d8cc442d44427f7f6c0e7a58'
59             'SKIP'
60             '1a016e9c0a0d0b355993b1b934d02d516c4626a262c2b0048551e00db316cb70')
61 validpgpkeys=('206D3B352F566F3B0E6572E997D9123DE37A484F') # Victor Toso de Carvalho <me@victortoso.com>
63 prepare() {
64   # https://gitlab.freedesktop.org/spice/spice-gtk/-/merge_requests/117
65   patch -Np1 -d $pkgname-$pkgver -i ../remove-gobject-introspection-dep.patch
68 build() {
69   arch-meson $pkgname-$pkgver build
70   meson compile -C build
73 check() {
74   meson test -C build --print-errorlogs
77 package() {
78   meson install -C build --destdir "$pkgdir"