blob: 897ff09a910ee972d366f45cedff3a58dee5c16d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
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
"
|